summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--beos/gui.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/beos/gui.cpp b/beos/gui.cpp
index fac0265f1..04a52bbd7 100644
--- a/beos/gui.cpp
+++ b/beos/gui.cpp
@@ -441,19 +441,19 @@ set_colour_from_ui(struct nsoption_s *opts,
enum nsoption_e option,
colour def_colour)
{
- if (ui != NOCOL) {
- rgb_color c;
- if (ui == B_DESKTOP_COLOR) {
+ if (ui != NOCOL) {
+ rgb_color c;
+ if (ui == B_DESKTOP_COLOR) {
BScreen s;
c = s.DesktopColor();
- } else {
- c = ui_color(ui);
- }
+ } else {
+ c = ui_color(ui);
+ }
- def_colour = ((((uint32_t)c.blue << 16) & 0xff0000) |
- ((c.green << 8) & 0x00ff00) |
- ((c.red) & 0x0000ff));
- }
+ def_colour = ((((uint32_t)c.blue << 16) & 0xff0000) |
+ ((c.green << 8) & 0x00ff00) |
+ ((c.red) & 0x0000ff));
+ }
opts[option].value.c = def_colour;