diff options
Diffstat (limited to 'plugins/TopToolBar')
-rw-r--r-- | plugins/TopToolBar/src/ttbopt.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/TopToolBar/src/ttbopt.cpp b/plugins/TopToolBar/src/ttbopt.cpp index db7d78dcb5..ea6e994cba 100644 --- a/plugins/TopToolBar/src/ttbopt.cpp +++ b/plugins/TopToolBar/src/ttbopt.cpp @@ -131,8 +131,11 @@ static void RecreateWindows() for (int i = 0; i < Buttons.getCount(); i++) {
TopButtonInt *b = Buttons[i];
if (b->hwnd) {
- DestroyWindow(b->hwnd);
- b->CreateWnd();
+ if (g_ctrl->bHardUpdate) {
+ DestroyWindow(b->hwnd);
+ b->CreateWnd();
+ }
+ else b->SetBitmap();
}
}
}
|