improved font sensitivity
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4702 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -138,24 +138,27 @@ ScreenWindow::ScreenWindow(ScreenSettings *Settings)
|
|||||||
|
|
||||||
CheckUpdateDisplayModes();
|
CheckUpdateDisplayModes();
|
||||||
|
|
||||||
BRect controlMenuRect(33.0, 30.0, 171.0, 48.0);
|
const char * resolutionLabel = "Resolution: ";
|
||||||
fResolutionField = new BMenuField(controlMenuRect, "ResolutionMenu", "Resolution:", fResolutionMenu, true);
|
float resolutionWidth = controlsBox->StringWidth(resolutionLabel);
|
||||||
|
BRect controlMenuRect(88.0-resolutionWidth, 30.0, 171.0, 48.0);
|
||||||
|
fResolutionField = new BMenuField(controlMenuRect, "ResolutionMenu", resolutionLabel, fResolutionMenu, true);
|
||||||
|
|
||||||
marked = fResolutionMenu->ItemAt(0);
|
marked = fResolutionMenu->ItemAt(0);
|
||||||
marked->SetMarked(true);
|
marked->SetMarked(true);
|
||||||
|
|
||||||
fResolutionField->SetDivider(55.0);
|
fResolutionField->SetDivider(resolutionWidth);
|
||||||
|
|
||||||
controlsBox->AddChild(fResolutionField);
|
controlsBox->AddChild(fResolutionField);
|
||||||
|
|
||||||
controlMenuRect.Set(50.0, 58.0, 171.0, 76.0);
|
const char * colorsLabel = "Colors: ";
|
||||||
|
float colorsWidth = controlsBox->StringWidth(colorsLabel);
|
||||||
fColorsField = new BMenuField(controlMenuRect, "ColorsMenu", "Colors:", fColorsMenu, true);
|
controlMenuRect.Set(88.0-colorsWidth, 58.0, 171.0, 76.0);
|
||||||
|
fColorsField = new BMenuField(controlMenuRect, "ColorsMenu", colorsLabel, fColorsMenu, true);
|
||||||
|
|
||||||
marked = fColorsMenu->ItemAt(0);
|
marked = fColorsMenu->ItemAt(0);
|
||||||
marked->SetMarked(true);
|
marked->SetMarked(true);
|
||||||
|
|
||||||
fColorsField->SetDivider(38.0);
|
fColorsField->SetDivider(colorsWidth);
|
||||||
|
|
||||||
controlsBox->AddChild(fColorsField);
|
controlsBox->AddChild(fColorsField);
|
||||||
|
|
||||||
@@ -173,14 +176,15 @@ ScreenWindow::ScreenWindow(ScreenSettings *Settings)
|
|||||||
fRefreshMenu->AddItem(new BMenuItem("Other...", new BMessage(POP_OTHER_REFRESH_MSG)));
|
fRefreshMenu->AddItem(new BMenuItem("Other...", new BMessage(POP_OTHER_REFRESH_MSG)));
|
||||||
|
|
||||||
|
|
||||||
controlMenuRect.Set(19.0, 86.0, 171.0, 104.0);
|
const char * refreshLabel = "Refresh Rate: ";
|
||||||
|
float refreshWidth = controlsBox->StringWidth(refreshLabel);
|
||||||
fRefreshField = new BMenuField(controlMenuRect, "RefreshMenu", "Refresh Rate:", fRefreshMenu, true);
|
controlMenuRect.Set(88.0-refreshWidth, 86.0, 171.0, 104.0);
|
||||||
|
fRefreshField = new BMenuField(controlMenuRect, "RefreshMenu", refreshLabel, fRefreshMenu, true);
|
||||||
|
|
||||||
marked = fRefreshMenu->FindItem("60 Hz");
|
marked = fRefreshMenu->FindItem("60 Hz");
|
||||||
marked->SetMarked(true);
|
marked->SetMarked(true);
|
||||||
|
|
||||||
fRefreshField->SetDivider(69.0);
|
fRefreshField->SetDivider(refreshWidth);
|
||||||
|
|
||||||
controlsBox->AddChild(fRefreshField);
|
controlsBox->AddChild(fRefreshField);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user