Skip to content

Commit 40daf86

Browse files
committed
set maximum randr resolution to 32767x32767
fixes parts of #472
1 parent a517c5a commit 40daf86

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

nx-X11/programs/Xserver/hw/nxagent/Extensions.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,10 @@ static int nxagentRandRInitSizes(ScreenPtr pScreen)
277277
int maxWidth;
278278
int maxHeight;
279279

280-
/*
281-
int w[] = {0, 160, 320, 640, 800, 1024, 1152, 1280, 1280, 1280, 1280, 1280,
282-
1280, 1360, 1440, 1600, 1600, 1680, 1920, 1920, 0, 0};
283-
int h[] = {0, 120, 240, 480, 600, 768, 864, 600, 720, 800, 854, 960,
284-
1024, 768, 900, 900, 1200, 1050, 1080, 1200, 0, 0};
285-
*/
286280
int w[] = {0, 320, 640, 640, 800, 800, 1024, 1024, 1152, 1280, 1280, 1280, 1360,
287-
1440, 1600, 1600, 1680, 1920, 1920, 0, 0};
281+
1440, 1600, 1600, 1680, 1920, 1920, MAXSHORT, 0, 0};
288282
int h[] = {0, 240, 360, 480, 480, 600, 600, 768, 864, 720, 800, 1024, 768,
289-
900, 900, 1200, 1050, 1080, 1200, 0, 0};
283+
900, 900, 1200, 1050, 1080, 1200, MAXSHORT, 0, 0};
290284

291285
int i;
292286
int nSizes;

0 commit comments

Comments
 (0)