From fe3e66deb3249c97d7744281a5164570b841a045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 22 May 2007 12:07:19 +0000 Subject: [PATCH] No ceilf(). BUG: 145776 svn path=/trunk/KDE/kdebase/workspace/; revision=667286 --- scene_opengl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 0ed510c50d..0f78ff1198 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -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;