version 1.2 | version 1.3 | |||
---|---|---|---|---|
|
| |||
} | } | |||
int ogl_init_window(int x, int y){ | int ogl_init_window(int x, int y){ | |||
SetWindowPos(g_hWnd,0,0,0,x+20,y+50,0);//the width/height seem to include borders/title/etc.. this isn't an exact value, but I didn't feel like testing enough to find the true values. -MPM | SetWindowPos(g_hWnd,0,0,0,x+20,y+50,0);//the width/height seem to include borders/title/etc.. this isn't an exact value, but I didn't feel like testing enough to find the true values. -MPM | |||
glViewport(0,0,x,y); | OGL_VIEWPORT(0,0,x,y); | |||
if (gl_initialized){ | if (gl_initialized){ | |||
// XResizeWindow(dpy,win,x,y); | // XResizeWindow(dpy,win,x,y); | |||
}else { | }else { |
Legend: | |
line(s) removed in v.1.2 | |
line(s) changed | |
line(s) added in v.1.3 |