DEADSOFTWARE

Fix texture preview on Linux
[d2df-editor.git] / src / editor / f_addresource_texture.pas
index df0b55559f2aa34550dd653363cd36041499de83..32a4da1d8b8c96597489e82f5474cb9f50f438ab 100644 (file)
@@ -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);