X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-editor.git;a=blobdiff_plain;f=src%2Feditor%2Ff_addresource_texture.pas;h=f3b3fade582900933aa608f587fe3c23e9479b12;hp=1402b13328d1469f0033c5112bc7aced072c49cb;hb=66487b9264a791df057975695339448eb3d7ba2f;hpb=61cdecb5161234a8a05e690e13d1aba82fb8b699 diff --git a/src/editor/f_addresource_texture.pas b/src/editor/f_addresource_texture.pas index 1402b13..f3b3fad 100644 --- a/src/editor/f_addresource_texture.pas +++ b/src/editor/f_addresource_texture.pas @@ -240,9 +240,7 @@ var ii: PByte; Width, Height: Integer; - ColorDepth: Integer; - ImageSize: Integer; - i, x, y: Integer; + x, y: Integer; BitMap: TBitMap; begin @@ -254,8 +252,6 @@ begin Width := img.width; Height := img.height; - ColorDepth := 24; - ImageSize := Width*Height*(ColorDepth div 8); BitMap := TBitMap.Create(); BitMap.PixelFormat := pf24bit;