Searched refs:aspectRatio (Results 1 - 6 of 6) sorted by relevance

/haiku/src/kits/tracker/
H A DThumbnails.cpp62 ThumbBounds(BBitmap* icon, float aspectRatio) argument
66 if ((icon->Bounds().Width() / icon->Bounds().Height()) == aspectRatio)
69 if (aspectRatio > 1) {
72 floorf((icon->Bounds().IntegerHeight() - 1) / aspectRatio));
75 } else if (aspectRatio < 1) {
78 * aspectRatio), icon->Bounds().IntegerHeight() - 1);
/haiku/src/preferences/screensaver/
H A DPreviewView.cpp139 float aspectRatio = 4.0f / 3.0f; local
142 float previewHeight = ceilf(previewWidth / aspectRatio);
H A DScreenSaverWindow.cpp341 float aspectRatio = 4.0f / 3.0f; local
342 float monitorWidth = monitorHeight * aspectRatio;
/haiku/src/apps/workspaces/
H A DWorkspaces.cpp746 float aspectRatio = screenWidth / screenHeight; local
753 float workspaceHeight = workspaceWidth / aspectRatio;
848 float aspectRatio = screenWidth / screenHeight; local
854 float workspaceHeight = workspaceWidth / aspectRatio;
1114 float aspectRatio = screenWidth / screenHeight; local
1130 float columnWidth = floor((rowHeight - 1) * aspectRatio) + 1;
/haiku/src/servers/app/drawing/interface/local/
H A DAccelerantHWInterface.cpp505 float aspectRatio = 0; local
508 aspectRatio = mode.timing.h_display / mode.timing.v_display;
520 + (int32)(500 * fabs(aspectRatio - compareAspectRatio))
948 float aspectRatio = 0.0f; local
950 aspectRatio = 1.0f * timing.h_size / timing.v_size;
974 if (_FindBestMode(mode, aspectRatio, modeFound, &diff) == B_OK) {
/haiku/src/preferences/backgrounds/
H A DBackgroundsView.cpp1185 float aspectRatio = BScreen().Frame().Width() / BScreen().Frame().Height(); local
1187 float previewHeight = ceil(previewWidth / aspectRatio);

Completed in 90 milliseconds