Changeset 54 for oup/current/Tools
- Timestamp:
- Dec 25, 2006, 4:04:47 AM (18 years ago)
- Location:
- oup/current/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Tools/Template.dfm
r51 r54 49 49 PopupMenu = filepopup 50 50 TabOrder = 0 51 OnClick = listClick 51 52 OnMouseDown = listMouseDown 52 53 end -
oup/current/Tools/Template.pas
r53 r54 278 278 pt.X := x; 279 279 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); 282 282 end; 283 283 -
oup/current/Tools/TxmpReplace.pas
r46 r54 31 31 OniImage_Old: TOniImage; 32 32 OniImage_New: TOniImage; 33 old_size: Integer; 33 34 fileid: Integer; 34 35 public … … 58 59 59 60 OniImage_Old.LoadFromTXMP(fileid); 61 old_size := OniImage_Old.GetImageDataSize((fadingbyte and $01) > 0); 60 62 Data := OniImage_Old.GetAsBMP; 61 63 mem := TMemoryStream.Create; … … 92 94 procedure TForm_TxmpReplace.btn_replaceClick(Sender: TObject); 93 95 var 94 oldsize,newsize: LongWord;96 newsize: LongWord; 95 97 old_rawaddr, new_rawaddr: LongWord; 96 98 oldfading: Byte; … … 121 123 end; 122 124 123 oldsize := OniImage_Old.GetImageDataSize((oldfading and $01) > 0);124 125 125 if check_fading.Checked then 126 126 if not OniImage_New.GetMipMappedImage(tempd) then … … 137 137 138 138 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 142 141 new_rawaddr := OniDataConnection.AppendRawFile( 143 142 OniDataConnection.OSisMac, Length(tempd), tempd)
Note:
See TracChangeset
for help on using the changeset viewer.