Browse Source

miniglx/glut: should use the x/y pos to create window

This allows moving miniglx glut windows around the framebuffer
tags/mesa_7_0
Dave Airlie 18 years ago
parent
commit
401629c721
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/glut/mini/window.c

+ 1
- 1
src/glut/mini/window.c View File

@@ -90,7 +90,7 @@ int APIENTRY glutCreateWindow (const char *title)
attr.event_mask = StructureNotifyMask | ExposureMask;
mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;

win = XCreateWindow( dpy, root, 0, 0, g_width, g_height,
win = XCreateWindow( dpy, root, g_xpos, g_ypos, g_width, g_height,
0, visinfo->depth, InputOutput,
visinfo->visual, mask, &attr );
if (!win) {

Loading…
Cancel
Save