Difference for arch/ogl/wgl.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 6
 
Line 6
 /*#include "event.h"*/  /*#include "event.h"*/
   
 extern HDC hDC;  extern HDC hDC;
   extern HWND g_hWnd;
   
 void ogl_swap_buffers(void){  void ogl_swap_buffers(void){
  ogl_do_palfx();   ogl_do_palfx();
Line 14
 
Line 15
  glClear(GL_COLOR_BUFFER_BIT);   glClear(GL_COLOR_BUFFER_BIT);
 }  }
 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
    glViewport(0,0,x,y);
  if (gl_initialized){   if (gl_initialized){
 //                XResizeWindow(dpy,win,x,y);  //                XResizeWindow(dpy,win,x,y);
  glViewport(0,0,x,y);  
  }else {   }else {
 /*  /*
                 glxcontext=glXCreateContext(dpy,visinfo,0,GL_TRUE);                  glxcontext=glXCreateContext(dpy,visinfo,0,GL_TRUE);

Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2