mirror of
https://github.com/mpv-player/mpv
synced 2024-12-15 11:25:10 +00:00
signed division must be used for calculation vo_dx and vo_dy.
Fixes a bug that causes overbig windows to disappear on Windows. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17128 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
552a2eab0b
commit
2d065d1c6d
@ -308,8 +308,8 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
|
|||||||
aspect_save_screenres(vo_screenwidth,vo_screenheight);
|
aspect_save_screenres(vo_screenwidth,vo_screenheight);
|
||||||
|
|
||||||
aspect(&d_width,&d_height,A_NOZOOM);
|
aspect(&d_width,&d_height,A_NOZOOM);
|
||||||
vo_dx = (vo_screenwidth - d_width) / 2;
|
vo_dx = (int)(vo_screenwidth - d_width) / 2;
|
||||||
vo_dy = (vo_screenheight - d_height) / 2;
|
vo_dy = (int)(vo_screenheight - d_height) / 2;
|
||||||
geometry(&vo_dx, &vo_dy, &d_width, &d_height,
|
geometry(&vo_dx, &vo_dy, &d_width, &d_height,
|
||||||
vo_screenwidth, vo_screenheight);
|
vo_screenwidth, vo_screenheight);
|
||||||
#ifdef HAVE_NEW_GUI
|
#ifdef HAVE_NEW_GUI
|
||||||
|
@ -820,8 +820,8 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
|
|||||||
aspect_save_screenres(vo_screenwidth,vo_screenheight);
|
aspect_save_screenres(vo_screenwidth,vo_screenheight);
|
||||||
|
|
||||||
aspect(&d_width,&d_height,A_NOZOOM);
|
aspect(&d_width,&d_height,A_NOZOOM);
|
||||||
vo_dx = (vo_screenwidth - d_width) / 2;
|
vo_dx = (int)(vo_screenwidth - d_width) / 2;
|
||||||
vo_dy = (vo_screenheight - d_height) / 2;
|
vo_dy = (int)(vo_screenheight - d_height) / 2;
|
||||||
geometry(&vo_dx, &vo_dy, &d_width, &d_height,
|
geometry(&vo_dx, &vo_dy, &d_width, &d_height,
|
||||||
vo_screenwidth, vo_screenheight);
|
vo_screenwidth, vo_screenheight);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user