Ignore:
Timestamp:
Mar 23, 2007, 4:07:58 AM (18 years ago)
Author:
alloc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Global/RawList.pas

    r122 r124  
    314314  mipmap:    Byte;
    315315  bpp:       Byte;
     316  minside:   Byte;
    316317begin
    317318  ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $88, SizeOf(mipmap), @mipmap);
     
    323324
    324325
     326  minside := 1;
    325327  case storetype of
    326328    0, 1, 2:
    327329      bpp := 16;
    328 //      datasize := x * y * 2;
    329330    8:
    330331      bpp := 32;
    331 //      datasize := x * y * 4;
    332332    9:
     333    begin
    333334      bpp := 4;
    334 //      datasize := x * y div 2;
     335      minside := 4;
     336    end;
    335337  end;
    336338
     
    342344      y    := y div 2;
    343345      datasize := datasize + (x * y * bpp) div 8;
    344     until (x = 1) or (y = 1);
     346    until (x = minside) or (y = minside);
    345347  end;
    346348
Note: See TracChangeset for help on using the changeset viewer.