Hi Fred, Yes, it implements the userSpaceScaleFactor concept. I attached the current patch if you want to have a look.
I had to re-implement -[NSImage compositeToPoint:fromRect:operation:fraction:] because it is supposed to respect the scale factor. I just compute an appropriate transformation matrix and call -drawAtPoint:fromRect:operation:fraction:. This is also nice because it reduces the number of code paths. It will need some testing, but it seems to work fine for me (I verified it with Quentin's test program from https://savannah.gnu.org/bugs/?func=detailitem&item_id=27782). --Eric
HighDPI9.diff
Description: Binary data
On 2011-04-13, at 1:47 AM, Fred Kiefer wrote: > The screen shot looks really great. Is this an implementation of the > userSpaceScaleFactor concept found in NSWindow and NSScreen? Nikolaus > Schaller implemented that in mySTEP a few years ago and I always wanted > to copy that over to GNUstep but never got around to do it. > > On 12.04.2011 21:34, Eric Wasylishen wrote: >> Here's a screenshot of a patch I'm working on which scales the UI for >> high DPI monitors - I think it's pretty cool :-) >> >> It was surprisingly easy to implement. The actual scaling is done >> simply by changing the bounds and frame rects in >> GSWindowDecorationView (no changes in -back, and it works with >> cairo/art/xlib). You can set an arbitrary scale factor via a >> GSScaleFactor user default. Other than that, there were just a couple >> of bugs to fix to get it to work (and still some bugs remaining, but >> it's at least usable.) >> >> I'll commit this after the upcoming release. >> >> Cheers, Eric
_______________________________________________ Gnustep-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnustep-dev
