X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-editor.git;a=blobdiff_plain;f=src%2Feditor%2Ff_addresource_sky.pas;h=2f2c25f84aa6743ef5a916a9f440cc26a7e8dcb5;hp=fb5bd5f1946d4528c06b58a64ddf7296069a4377;hb=3dc2fe6b3d29cd54425db8f590e922f2dce50e99;hpb=212386359ea0af4e0a861f9bf92c45a1516ac87c diff --git a/src/editor/f_addresource_sky.pas b/src/editor/f_addresource_sky.pas index fb5bd5f..2f2c25f 100644 --- a/src/editor/f_addresource_sky.pas +++ b/src/editor/f_addresource_sky.pas @@ -1,13 +1,13 @@ unit f_addresource_sky; -{$MODE Delphi} +{$INCLUDE ../shared/a_modes.inc} interface uses LCLIntf, LCLType, LMessages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, f_addresource, - ExtCtrls, StdCtrls; + ExtCtrls, StdCtrls, utils; type TAddSkyForm = class (TAddResourceForm) @@ -35,21 +35,6 @@ uses {$R *.lfm} -procedure SwapRGB(data: Pointer; Size: Integer); -asm - mov ebx, eax - mov ecx, size - -@@loop : - mov al,[ebx+0] - mov ah,[ebx+2] - mov [ebx+2],al - mov [ebx+0],ah - add ebx,3 - dec ecx - jnz @@loop -end; - function ShowTGATexture(ResourceStr: String): TBitMap; var TGAHeader: packed record // Header type for TGA images @@ -183,7 +168,7 @@ begin SectionName := '..'; // WAD файл: - a := cbWADList.Items.IndexOf(FileName); + a := cbWADList.Items.IndexOf(win2utf(FileName)); if a <> -1 then begin cbWADList.ItemIndex := a; @@ -191,7 +176,7 @@ begin end; // Секция: - a := cbSectionsList.Items.IndexOf(SectionName); + a := cbSectionsList.Items.IndexOf(win2utf(SectionName)); if a <> -1 then begin cbSectionsList.ItemIndex := a; @@ -199,7 +184,7 @@ begin end; // Ресурс: - a := lbResourcesList.Items.IndexOf(ResourceName); + a := lbResourcesList.Items.IndexOf(win2utf(ResourceName)); if a <> -1 then begin lbResourcesList.ItemIndex := a;