Removed some wrong code and added a comment. Small style fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10654 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -89,6 +89,7 @@ get_scroll_bar_info(scroll_bar_info *info)
|
|||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_IMPEXP_BE status_t
|
_IMPEXP_BE status_t
|
||||||
set_scroll_bar_info(scroll_bar_info *info)
|
set_scroll_bar_info(scroll_bar_info *info)
|
||||||
{
|
{
|
||||||
@@ -161,6 +162,7 @@ set_mouse_map(mouse_map *map)
|
|||||||
return _control_input_server_(&command, &reply);
|
return _control_input_server_(&command, &reply);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_IMPEXP_BE status_t
|
_IMPEXP_BE status_t
|
||||||
get_click_speed(bigtime_t *speed)
|
get_click_speed(bigtime_t *speed)
|
||||||
{
|
{
|
||||||
@@ -567,6 +569,7 @@ ui_color(color_which which)
|
|||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_IMPEXP_BE rgb_color
|
_IMPEXP_BE rgb_color
|
||||||
tint_color(rgb_color color, float tint)
|
tint_color(rgb_color color, float tint)
|
||||||
{
|
{
|
||||||
@@ -575,15 +578,12 @@ tint_color(rgb_color color, float tint)
|
|||||||
#define LIGHTEN(x) ((uint8)(255.0f - (255.0f - x) * tint))
|
#define LIGHTEN(x) ((uint8)(255.0f - (255.0f - x) * tint))
|
||||||
#define DARKEN(x) ((uint8)(x * (2 - tint)))
|
#define DARKEN(x) ((uint8)(x * (2 - tint)))
|
||||||
|
|
||||||
if (tint < 1.0f)
|
if (tint < 1.0f) {
|
||||||
{
|
|
||||||
result.red = LIGHTEN(color.red);
|
result.red = LIGHTEN(color.red);
|
||||||
result.green = LIGHTEN(color.green);
|
result.green = LIGHTEN(color.green);
|
||||||
result.blue = LIGHTEN(color.blue);
|
result.blue = LIGHTEN(color.blue);
|
||||||
result.alpha = color.alpha;
|
result.alpha = color.alpha;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
result.red = DARKEN(color.red);
|
result.red = DARKEN(color.red);
|
||||||
result.green = DARKEN(color.green);
|
result.green = DARKEN(color.green);
|
||||||
result.blue = DARKEN(color.blue);
|
result.blue = DARKEN(color.blue);
|
||||||
@@ -607,11 +607,11 @@ _init_interface_kit_()
|
|||||||
BTextView::sWidthAtom = 0;
|
BTextView::sWidthAtom = 0;
|
||||||
BTextView::sWidths = new _BWidthBuffer_;
|
BTextView::sWidths = new _BWidthBuffer_;
|
||||||
|
|
||||||
status_t result = get_menu_info(&BMenu::sMenuInfo);
|
// TODO: get_menu_info() copies the BMenu::sMenuInfo struct
|
||||||
if (result != B_OK)
|
// to the passed menu_info, so we can't use it here.
|
||||||
return result;
|
// We should probably load the ui settings from the disk
|
||||||
|
|
||||||
//TODO: fill the other static members
|
// TODO: fill the other static members
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
@@ -643,7 +643,8 @@ _init_global_fonts()
|
|||||||
- \c 2: Win95
|
- \c 2: Win95
|
||||||
- \c 3: MacOS
|
- \c 3: MacOS
|
||||||
*/
|
*/
|
||||||
void __set_window_decor(int32 theme)
|
void
|
||||||
|
__set_window_decor(int32 theme)
|
||||||
{
|
{
|
||||||
BAppServerLink link;
|
BAppServerLink link;
|
||||||
link.StartMessage(AS_R5_SET_DECORATOR);
|
link.StartMessage(AS_R5_SET_DECORATOR);
|
||||||
|
|||||||
Reference in New Issue
Block a user