NSWindow frame with GSScaleFactor

2023-08-13 Thread dr_clow
I am trying to investigate the math issues facing GNUStep layout system when GSScale is set to something non-1. I am trying to account for all the math that layouts the contentView (I have been looking into both GSDecorationView and NSWindow) . Just a couple questions: 1) In NSWindow.m, line

Re: NSSwitch drawRect bug

2023-08-13 Thread dr_clow
Nice! Maybe even just drawSwitchInRect:dirtyRect:forState:enabled: Though, with your way, you could get more information from the control without having to enlarge method arguments every time we wanted to add something else. So maybe -(void) drawSwitch:(NSSwitch*)switch inRect:(CGRect)rect

Re: NSSwitch drawRect bug

2023-08-13 Thread Fred Kiefer
This is a common problem in our drawing code, especially in GSTheme. In the better cases we hand on the view/controller to be drawn along with the requested rectangle. That way the drawing code could still optimise the process, by only drawing components that are actually visible. I will