No ceilf().

BUG: 145776


svn path=/trunk/KDE/kdebase/workspace/; revision=667286
This commit is contained in:
Luboš Luňák 2007-05-22 12:07:19 +00:00
parent 44349d3369
commit fe3e66deb3

View file

@ -1005,8 +1005,8 @@ void SceneOpenGL::Window::createVertexGrid(int xres, int yres)
{
// First calculate number of columns/rows that this rect will be
// divided into
int cols = (xres <= 0) ? 1 : (int)ceilf( r.width() / (float)xres );
int rows = (yres <= 0) ? 1 : (int)ceilf( r.height() / (float)yres );
int cols = (xres <= 0) ? 1 : (int)ceil( r.width() / (float)xres );
int rows = (yres <= 0) ? 1 : (int)ceil( r.height() / (float)yres );
// Now calculate actual size of each cell
int cellw = r.width() / cols;
int cellh = r.height() / rows;