summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-08-28 06:45:59 +0000
committerManolo Gouy <Manolo>2016-08-28 06:45:59 +0000
commit87d28f5eab6a3d41af12425eb684175930416455 (patch)
tree30c064b028719ce2a812366ac4df74dda1c560e8 /src
parentfd2da982b625109efe50a0c9351bf6dd5abc8aae (diff)
Use desktop scaling factor also when pasting an Enhanced Metafile
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11900 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index b5dfa474b..f0229919f 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -769,6 +769,8 @@ void Fl_WinAPI_System_Driver::paste(Fl_Widget &receiver, int clipboard, const ch
float factorw = (100.f * hmm) / hdots;
float factorh = (100.f * vmm) / vdots + 0.5f;
width = (int)(width/factorw); height = (int)(height/factorh); // convert to screen pixel unit
+ float scaling = Fl_WinAPI_Screen_Driver::desktop_scaling_factor();
+ width *= scaling; height *= scaling;
RECT rect = {0, 0, width, height};
Fl_Offscreen off = fl_create_offscreen(width, height);
fl_begin_offscreen(off);