From: DeaDDooMER Date: Sat, 12 May 2018 10:27:32 +0000 (+0300) Subject: Fix texture preview on Linux X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=8b5918f7194cae0c5cf3fb0d03e677e6d50cf7f8;p=d2df-editor.git Fix texture preview on Linux --- diff --git a/src/editor/f_addresource_texture.pas b/src/editor/f_addresource_texture.pas index df0b555..32a4da1 100644 --- a/src/editor/f_addresource_texture.pas +++ b/src/editor/f_addresource_texture.pas @@ -299,6 +299,9 @@ begin ii^ := clr.b; Inc(ii); ii^ := clr.g; Inc(ii); ii^ := clr.r; Inc(ii); + + (* Why this works in linux? *) + {$IFNDEF WINDOWS}Inc(ii){$ENDIF} end; end; FreeImage(img);