projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acb183e
)
[quartz] Pad both the content rect and the window width.
author
John Ralls
<jralls@ceridwen.us>
Tue, 9 May 2023 22:39:10 +0000
(15:39 -0700)
committer
John Ralls
<jralls@ceridwen.us>
Tue, 9 May 2023 22:39:10 +0000
(15:39 -0700)
Otherwise the rastering gets messed up and popup windows get badly
truncated lengthwise on non-Retina monitors when there are both
Retina and non-Retina monitors.
gdk/quartz/GdkQuartzNSWindow.c
patch
|
blob
|
history
diff --git
a/gdk/quartz/GdkQuartzNSWindow.c
b/gdk/quartz/GdkQuartzNSWindow.c
index 5a546891aa48608ce6b410b97f050c814712e70b..6a3d2919c16b979982afb87fc335700afbe603ed 100644
(file)
--- a/
gdk/quartz/GdkQuartzNSWindow.c
+++ b/
gdk/quartz/GdkQuartzNSWindow.c
@@
-245,7
+245,10
@@
window->height = content_rect.size.height;
if(window->width % align)
- content_rect.size.width += align - window->width % align;
+ {
+ window->width += align - window->width % align;
+ content_rect.size.width = window->width;
+ }
content_rect.origin.x = 0;
content_rect.origin.y = 0;