projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Application clipping region can be set to null without affecting
[wxWidgets.git]
/
src
/
msw
/
bmpbuttn.cpp
diff --git
a/src/msw/bmpbuttn.cpp
b/src/msw/bmpbuttn.cpp
index 3aef7085d141d48d6d0fdf9b1defa9966446c1f4..3b67925eaafcdc033e656c5b57090adb58cf5094 100644
(file)
--- a/
src/msw/bmpbuttn.cpp
+++ b/
src/msw/bmpbuttn.cpp
@@
-304,8
+304,7
@@
bool wxBitmapButton::MSWOnDraw(WXDRAWITEMSTRUCT *item)
}
// draw the bitmap
- wxDC dst;
- dst.SetHDC((WXHDC) hDC, false);
+ wxDCTemp dst((WXHDC)hDC);
dst.DrawBitmap(*bitmap, x1, y1, true);
// draw focus / disabled state, if auto-drawing