Mercurial > mplayer.hg
comparison libvo/vo_gl2.c @ 18079:f57317460375
fixes and cleanup for windows fullscreen switching (restore old position,
fullscreen on current monitor).
author | reimar |
---|---|
date | Wed, 12 Apr 2006 14:11:26 +0000 |
parents | f580a7755ac5 |
children | d75953576ae4 |
comparison
equal
deleted
inserted
replaced
18078:aeb937690d3d | 18079:f57317460375 |
---|---|
593 } | 593 } |
594 | 594 |
595 #ifdef GL_WIN32 | 595 #ifdef GL_WIN32 |
596 | 596 |
597 static int config_w32(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) { | 597 static int config_w32(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) { |
598 o_dwidth = d_width; | 598 if (!vo_w32_config(d_width, d_height, flags)) |
599 o_dheight = d_height; | |
600 vo_fs = flags & VOFLAG_FULLSCREEN; | |
601 vo_vm = flags & VOFLAG_MODESWITCHING; | |
602 | |
603 vo_dwidth = d_width; | |
604 vo_dheight = d_height; | |
605 | |
606 if (!createRenderingContext()) | |
607 return -1; | 599 return -1; |
608 | 600 |
609 if (vo_fs) | 601 if (vo_fs) |
610 aspect(&d_width, &d_height, A_ZOOM); | 602 aspect(&d_width, &d_height, A_ZOOM); |
611 | 603 |