No ceilf().
BUG: 145776 svn path=/trunk/KDE/kdebase/workspace/; revision=667286
This commit is contained in:
parent
44349d3369
commit
fe3e66deb3
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue