ScreenSaver: use ceilf instead of ceil

... to restrict to single float precision. This is a little pedantic and silly
but bare with me for the sake of consistency.
This commit is contained in:
John Scipione
2013-09-04 11:06:30 -04:00
parent bc61e26366
commit 28a2faa30a
+1 -1
View File
@@ -52,7 +52,7 @@ PreviewView::PreviewView(const char* name)
float aspectRatio = 4.0f / 3.0f;
// 4:3 monitor
float previewWidth = 160.0f;
float previewHeight = ceil(previewWidth / aspectRatio);
float previewHeight = ceilf(previewWidth / aspectRatio);
SetExplicitSize(BSize(previewWidth, previewHeight));
}