X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-editor.git;a=blobdiff_plain;f=src%2Feditor%2Ff_addresource_texture.pas;h=6c3840d627d290c4dd44f1261a09c24a7f377031;hp=1402b13328d1469f0033c5112bc7aced072c49cb;hb=b5f9c55a34f89cc238eedc5f0c2620a2d8ba6687;hpb=f622519cf9e20cee299cc331d35ef158bb1cb72f diff --git a/src/editor/f_addresource_texture.pas b/src/editor/f_addresource_texture.pas index 1402b13..6c3840d 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; @@ -492,7 +488,7 @@ begin for i := 0 to lbResourcesList.Count-1 do if lbResourcesList.Selected[i] then begin - AddTexture(utf2win(cbWADlist.Text), utf2win(cbSectionsList.Text), + AddTexture(cbWADlist.Text, utf2win(cbSectionsList.Text), utf2win(lbResourcesList.Items[i]), False); lbResourcesList.Selected[i] := False; end;