BControlLook: The spacing values need to be rounded...
... or they will cause all sorts of graphics glitches and layout problems.
This commit is contained in:
parent
8c9cf99133
commit
a8b89c6b4f
@ -67,13 +67,13 @@ BControlLook::ComposeSpacing(float spacing)
|
||||
if (spacing == B_USE_DEFAULT_SPACING || spacing == B_USE_ITEM_SPACING) {
|
||||
return be_control_look->DefaultItemSpacing();
|
||||
} else if (spacing == B_USE_HALF_ITEM_SPACING) {
|
||||
return be_control_look->DefaultItemSpacing() * 0.5f;
|
||||
return ceilf(be_control_look->DefaultItemSpacing() * 0.5f);
|
||||
} else if (spacing == B_USE_WINDOW_INSETS) {
|
||||
return be_control_look->DefaultItemSpacing();
|
||||
} else if (spacing == B_USE_SMALL_SPACING) {
|
||||
return be_control_look->DefaultItemSpacing() * 0.7f;
|
||||
return ceilf(be_control_look->DefaultItemSpacing() * 0.7f);
|
||||
} else if (spacing == B_USE_BIG_SPACING) {
|
||||
return be_control_look->DefaultItemSpacing() * 1.3f;
|
||||
return ceilf(be_control_look->DefaultItemSpacing() * 1.3f);
|
||||
}
|
||||
return spacing;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user