summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-29 09:14:54 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-29 09:15:04 +0100
commitf5f90432084cd7386764ef40b5d9d98a026c0665 (patch)
tree67452e694dc44cdde63f30fdff94e60933eb265a /src/drivers
parent4291e9497bb5b0e83abd4e8ea4a15febaef0616a (diff)
Windows: fix undrawn pixels at right and bottom of scaled windows.
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx
index 1938fc5d5..31e54c37f 100644
--- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx
+++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx
@@ -246,14 +246,12 @@ void Fl_GDI_Graphics_Driver::scale(float f) {
/* Rescale region r with factor f and returns the scaled region.
Region r is returned unchanged if r is null or f is 1.
- The input region is deleted if dr is null.
*/
HRGN Fl_GDI_Graphics_Driver::scale_region(HRGN r, float f, Fl_GDI_Graphics_Driver *dr) {
if (r && f != 1) {
DWORD size = GetRegionData(r, 0, NULL);
RGNDATA *pdata = (RGNDATA*)malloc(size);
GetRegionData(r, size, pdata);
- if (!dr) DeleteObject(r);
POINT pt = {0, 0};
if (dr && dr->depth >= 1) { // account for translation
GetWindowOrgEx((HDC)dr->gc(), &pt);