| 5 |
|
uses |
| 6 |
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, |
| 7 |
|
Dialogs, _TemplateFileList, Menus, StdCtrls, Buttons, ComCtrls, ExtCtrls, |
| 8 |
< |
OniImgClass, TypeDefs; |
| 8 |
> |
OniImgClass, TypeDefs, VirtualTrees; |
| 9 |
|
|
| 10 |
|
type |
| 11 |
|
TForm_TxmpReplace = class(TForm_TemplateFileList) |
| 13 |
|
btn_replace: TButton; |
| 14 |
|
check_transparency: TCheckBox; |
| 15 |
|
check_fading: TCheckBox; |
| 16 |
< |
GroupBox1: TGroupBox; |
| 16 |
> |
group_txmp: TGroupBox; |
| 17 |
|
Splitter1: TSplitter; |
| 18 |
|
group_bmpselect: TGroupBox; |
| 19 |
|
image_bmppreview: TImage; |
| 176 |
|
newsize := mem.Size; |
| 177 |
|
mem.Seek(0, soFromBeginning); |
| 178 |
|
|
| 179 |
< |
if (newsize > old_size) and (ConManager.Connection[ConnectionID].Backend = DB_ONI) then |
| 179 |
> |
if (newsize > old_size) and (ConManager.Connection[ConnectionID].Backend in [DB_ONI, DB_ONISPLIT]) then |
| 180 |
|
new_rawaddr := ConManager.Connection[ConnectionID].AppendRawFile( |
| 181 |
|
not (ConManager.Connection[ConnectionID].DataOS = DOS_WIN), mem) |
| 182 |
|
else |
| 189 |
|
oldfading := oldfading or $01 |
| 190 |
|
else |
| 191 |
|
oldfading := oldfading and (not Byte($01)); |
| 192 |
< |
ConManager.Connection[ConnectionID].UpdateDatFilePart(fileid, $88, 1, @datbyte); |
| 192 |
> |
ConManager.Connection[ConnectionID].UpdateDatFilePart(fileid, $88, 1, @oldfading); |
| 193 |
|
datbyte := $10; |
| 194 |
|
// if check_transparency.Checked then |
| 195 |
|
// datbyte := datbyte or $04; |