one more size issue

metadata
Wenzel Jakob 2010-11-02 02:25:49 +01:00
parent fe265a7509
commit cce9775c0d
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ Bitmap::Bitmap(int width, int height, int bpp)
m_gamma = -1.0f; // sRGB
// 1-bit masks are stored in a packed format.
m_size = (size_t) std::ceil((m_width * m_height * m_bpp) / 8.0);
m_size = (size_t) std::ceil(((double) m_width * m_height * m_bpp) / 8.0);
m_data = static_cast<unsigned char *>(allocAligned(m_size));
}