# HG changeset patch # User sheepluva # Date 1452445277 -3600 # Node ID 8e221d2a368e1c6be1156b2b081830256b4a87bb # Parent 2b30283a402c4fcdc0522c926ae3da58b6955378 don't attempt to prettify alpha of single-pixel textures (segfault with "digital" theme from forums) diff -r 2b30283a402c -r 8e221d2a368e hedgewars/uTextures.pas --- 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;