mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 04:11:28 +00:00
* Source/x11/XGServerWindow.m (screeList): remove usage of intermediate frame
variable.
This commit is contained in:
parent
2fdced823c
commit
230006323d
1 changed files with 5 additions and 5 deletions
|
@ -4465,6 +4465,7 @@ _computeDepth(int class, int bpp)
|
|||
NSMutableArray *tmpScreens;
|
||||
int i;
|
||||
int mi;
|
||||
int xScreenHeight = DisplayHeight(dpy, defScreen);
|
||||
|
||||
monitorsCount = screen_res->noutput;
|
||||
tmpScreens = [NSMutableArray arrayWithCapacity: monitorsCount];
|
||||
|
@ -4487,11 +4488,10 @@ _computeDepth(int class, int bpp)
|
|||
monitors[mi].resolution = [self resolutionForScreen: defScreen];
|
||||
/* Transform coordinates from Xlib (flipped) to OpenStep (unflippped).
|
||||
Windows and screens should have the same coordinate system. */
|
||||
frame = NSMakeRect(crtc_info->x,
|
||||
monitors[mi].frame = NSMakeRect(crtc_info->x,
|
||||
xScreenHeight - crtc_info->height - crtc_info->y,
|
||||
crtc_info->width,
|
||||
crtc_info->height);
|
||||
monitors[mi].frame = frame;
|
||||
/* Add monitor ID (index in monitors array).
|
||||
Put primary monitor ID at index 0 since NSScreen get this as main
|
||||
screen if application has no key window. */
|
||||
|
|
Loading…
Reference in a new issue