- Timestamp:
- Mar 23, 2007, 4:07:58 AM (18 years ago)
- Location:
- oup/current
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Global/OniImgClass.pas
r122 r124 590 590 x, y: Word; 591 591 bpp: Byte; 592 begin 592 minside: Byte; 593 begin 594 minside := 1; 593 595 case Self.FStoreType of 594 596 9: 595 bpp := 8; 597 begin 598 bpp := 4; 599 minside := 4; 600 end; 596 601 0, 1, 2: 597 602 bpp := 16; … … 612 617 y := y div 2; 613 618 size := size + (x * y * bpp) div 8; 614 until (x = 1) or (y = 1);619 until (x = minside) or (y = minside); 615 620 end; 616 621 Result := size; -
oup/current/Global/RawList.pas
r122 r124 314 314 mipmap: Byte; 315 315 bpp: Byte; 316 minside: Byte; 316 317 begin 317 318 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $88, SizeOf(mipmap), @mipmap); … … 323 324 324 325 326 minside := 1; 325 327 case storetype of 326 328 0, 1, 2: 327 329 bpp := 16; 328 // datasize := x * y * 2;329 330 8: 330 331 bpp := 32; 331 // datasize := x * y * 4;332 332 9: 333 begin 333 334 bpp := 4; 334 // datasize := x * y div 2; 335 minside := 4; 336 end; 335 337 end; 336 338 … … 342 344 y := y div 2; 343 345 datasize := datasize + (x * y * bpp) div 8; 344 until (x = 1) or (y = 1);346 until (x = minside) or (y = minside); 345 347 end; 346 348 -
oup/current/Global/TypeDefs.pas
r118 r124 115 115 end; 116 116 117 117 118 TLinkByName = record 118 119 SrcOffset: Integer;
Note:
See TracChangeset
for help on using the changeset viewer.