Changeset 54 for oup/current/Tools


Ignore:
Timestamp:
Dec 25, 2006, 4:04:47 AM (18 years ago)
Author:
alloc
Message:
 
Location:
oup/current/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Tools/Template.dfm

    r51 r54  
    4949      PopupMenu = filepopup
    5050      TabOrder = 0
     51      OnClick = listClick
    5152      OnMouseDown = listMouseDown
    5253    end
  • oup/current/Tools/Template.pas

    r53 r54  
    278278  pt.X := x;
    279279  pt.Y := y;
    280   filelist.ItemIndex := filelist.ItemAtPos(pt, true);
    281   Self.listClick(Self);
     280//  filelist.ItemIndex := filelist.ItemAtPos(pt, true);
     281//  Self.listClick(Self);
    282282end;
    283283
  • oup/current/Tools/TxmpReplace.pas

    r46 r54  
    3131    OniImage_Old: TOniImage;
    3232    OniImage_New: TOniImage;
     33    old_size: Integer;
    3334    fileid: Integer;
    3435  public
     
    5859
    5960  OniImage_Old.LoadFromTXMP(fileid);
     61  old_size := OniImage_Old.GetImageDataSize((fadingbyte and $01) > 0);
    6062  Data := OniImage_Old.GetAsBMP;
    6163  mem  := TMemoryStream.Create;
     
    9294procedure TForm_TxmpReplace.btn_replaceClick(Sender: TObject);
    9395var
    94   oldsize, newsize: LongWord;
     96  newsize: LongWord;
    9597  old_rawaddr, new_rawaddr: LongWord;
    9698  oldfading: Byte;
     
    121123    end;
    122124
    123     oldsize := OniImage_Old.GetImageDataSize((oldfading and $01) > 0);
    124 
    125125    if check_fading.Checked then
    126126      if not OniImage_New.GetMipMappedImage(tempd) then
     
    137137
    138138    newsize := OniImage_New.GetImageDataSize(check_fading.Checked);
    139     ShowMessage(IntToStr(newsize));
    140 
    141     if (newsize > oldsize) and (OniDataConnection.Backend = ODB_Dat) then
     139
     140    if (newsize > old_size) and (OniDataConnection.Backend = ODB_Dat) then
    142141      new_rawaddr := OniDataConnection.AppendRawFile(
    143142        OniDataConnection.OSisMac, Length(tempd), tempd)
Note: See TracChangeset for help on using the changeset viewer.