From 6b26291d7b5ef793bf4d2dd67e36968a693990f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 15 Aug 2010 17:13:12 +0000 Subject: [PATCH] Force reloading the current decorator on -r until they handle color changes correctly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38123 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/WindowShade.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bin/WindowShade.cpp b/src/bin/WindowShade.cpp index 0b631c0bc0..b2f50fb105 100644 --- a/src/bin/WindowShade.cpp +++ b/src/bin/WindowShade.cpp @@ -15,6 +15,15 @@ #include #include +namespace BPrivate { +int32 count_decorators(void); +int32 get_decorator(void); +status_t get_decorator_name(const int32 &index, BString &name); +status_t get_decorator_preview(const int32 &index, BBitmap *bitmap); +status_t set_decorator(const int32 &index); +} + +using namespace BPrivate; static int sColorWhich = -1; static struct option const kLongOptions[] = { @@ -133,6 +142,7 @@ main(int argc, char **argv) case 'r': // TODO: refresh (but shouldn't be needed) + set_decorator(get_decorator()); break; case 's': // IGNORED, for compatibility with original app