~haggai-eran/nux/rtl-rebased

« back to all changes in this revision

Viewing changes to NuxImage/DDS.cpp

  • Committer: Jay Taoko
  • Date: 2011-10-21 23:49:15 UTC
  • mfrom: (508.1.2 nux-20)
  • Revision ID: jay.taoko@canonical.com-20111021234915-hnzakb5ndebica8i
* Removed custom Nux types: t_u32, t_s32, t_bool, ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
 
338
338
    if (isVolume)
339
339
    {
340
 
      for (t_s32 mip = 0; mip < mipmaps; ++mip )
 
340
      for (int mip = 0; mip < mipmaps; ++mip )
341
341
      {
342
 
        t_s32 pitch = ImageSurface::GetLevelPitchNoMemAlignment(DDSFormat, width, height, mip);
343
 
        t_s32 blockheight = ImageSurface::GetLevelBlockHeight(DDSFormat, height, mip);
 
342
        int pitch = ImageSurface::GetLevelPitchNoMemAlignment(DDSFormat, width, height, mip);
 
343
        int blockheight = ImageSurface::GetLevelBlockHeight(DDSFormat, height, mip);
344
344
 
345
 
        for (t_s32 s = 0; s < ImageSurface::GetLevelDim(DDSFormat, VolumeDepth, mip); s++ )
 
345
        for (int s = 0; s < ImageSurface::GetLevelDim(DDSFormat, VolumeDepth, mip); s++ )
346
346
        {
347
 
          for (t_s32 b = 0; b < blockheight; b++)
 
347
          for (int b = 0; b < blockheight; b++)
348
348
          {
349
349
            Memcpy( BitmapData->GetSurface(mip, s).GetPtrRawData() + b * pitch,
350
350
                     (const void *) (&buffer[buffer_index + b * pitch]),