Changeset 2603


Ignore:
Timestamp:
Mar 23, 2013, 10:13:26 PM (10 years ago)
Author:
sam
Message:

gpu: fix several bugs introduced by the tileset refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tileset.cpp

    r2588 r2603  
    8181        if (size.x <= 0 || size.y <= 0)
    8282            size = ivec2(32, 32);
    83         m_data->count.x = m_data->m_image_size.x / max(size.x, m_data->m_image_size.x);
    84         m_data->count.y = m_data->m_image_size.y / max(size.y, m_data->m_image_size.y);
     83        m_data->count.x = m_data->m_image_size.x / min(size.x, m_data->m_image_size.x);
     84        m_data->count.y = m_data->m_image_size.y / min(size.y, m_data->m_image_size.y);
    8585        m_data->m_tile_size = size;
    8686    }
Note: See TracChangeset for help on using the changeset viewer.