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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user