changeset 11487 | 8e221d2a368e |
parent 11362 | ed5a6478e710 |
child 11507 | bd9a2f1b0080 |
--- a/hedgewars/uTextures.pas Sun Jan 10 17:39:27 2016 +0100 +++ b/hedgewars/uTextures.pas Sun Jan 10 18:01:17 2016 +0100 @@ -176,6 +176,9 @@ r, slr, w, si, li: LongWord; begin w:= surf^.w; + // just a single pixel, nothing to do here + if (w < 2) and (surf^.h < 2) then + exit; slr:= surf^.h - 2; si:= 0; li:= w - 1;