Mercurial > mplayer.hg
comparison libvo/vo_gl.c @ 16282:273d33249c25
-wid support for windows. Not well tested, might still behave a bit weird.
author | reimar |
---|---|
date | Sun, 21 Aug 2005 09:59:45 +0000 |
parents | 3934a31bcce4 |
children | a87c6cf3fe52 |
comparison
equal
deleted
inserted
replaced
16281:dc50524c98dc | 16282:273d33249c25 |
---|---|
77 | 77 |
78 static unsigned int slice_height = 1; | 78 static unsigned int slice_height = 1; |
79 | 79 |
80 static void resize(int x,int y){ | 80 static void resize(int x,int y){ |
81 mp_msg(MSGT_VO, MSGL_V, "[gl] Resize: %dx%d\n",x,y); | 81 mp_msg(MSGT_VO, MSGL_V, "[gl] Resize: %dx%d\n",x,y); |
82 #ifndef GL_WIN32 | |
83 if (WinID >= 0) { | 82 if (WinID >= 0) { |
84 int top = 0, left = 0, w = x, h = y; | 83 int top = 0, left = 0, w = x, h = y; |
85 geometry(&top, &left, &w, &h, vo_screenwidth, vo_screenheight); | 84 geometry(&top, &left, &w, &h, vo_screenwidth, vo_screenheight); |
86 glViewport(top, left, w, h); | 85 glViewport(top, left, w, h); |
87 } else | 86 } else |
88 #endif | |
89 glViewport( 0, 0, x, y ); | 87 glViewport( 0, 0, x, y ); |
90 | 88 |
91 glMatrixMode(GL_PROJECTION); | 89 glMatrixMode(GL_PROJECTION); |
92 glLoadIdentity(); | 90 glLoadIdentity(); |
93 if (vo_fs && use_aspect) { | 91 if (vo_fs && use_aspect) { |