summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2021-09-15 17:32:49 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2021-09-25 17:44:33 +0200
commit398ae49ba337a2d2c32611f371132c978cf4db64 (patch)
treeb9f1a73f53049ba9c10e0e68c1482f27929b9f86 /vcl/inc
parent3d897530d4cd24e2739c81a39984015b192d110e (diff)
WIN handle graphics palette with deinit
Manually setting the default palette of the graphics DC seems to be a bad idea. And I think this fixes a real bug in ImplHandlePalette, because that would set the graphics DC palette but didn't set the default palette using setDefPal. Change-Id: Ic3b176645c68fa33a020791d5b64b04c3cbaacee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122158 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/win/salgdi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/win/salgdi.h b/vcl/inc/win/salgdi.h
index f43224a861a4..0f5b700cff26 100644
--- a/vcl/inc/win/salgdi.h
+++ b/vcl/inc/win/salgdi.h
@@ -177,7 +177,7 @@ public:
void setHDC(HDC aNew);
HPALETTE getDefPal() const;
- void setDefPal(HPALETTE hDefPal);
+ void setPalette(HPALETTE, BOOL bForceBkgd = TRUE);
HRGN getRegion() const;