Mercurial > mplayer.hg
comparison libvo/vo_macosx.m @ 15573:5db3dd72c876
Fix pan-scan in fullscreen mode
author | nplourde |
---|---|
date | Thu, 26 May 2005 16:33:28 +0000 |
parents | ab43da229a76 |
children | 9a4d9b7c8dd6 |
comparison
equal
deleted
inserted
replaced
15572:5d738acd664c | 15573:5db3dd72c876 |
---|---|
664 { | 664 { |
665 static NSRect old_frame; | 665 static NSRect old_frame; |
666 static NSRect old_view_frame; | 666 static NSRect old_view_frame; |
667 NSRect device_rect = [[window screen] frame]; | 667 NSRect device_rect = [[window screen] frame]; |
668 | 668 |
669 panscan_calc(); | |
670 | |
669 //go fullscreen | 671 //go fullscreen |
670 if(vo_fs) | 672 if(vo_fs) |
671 { | 673 { |
672 if(!isRootwin) | 674 if(!isRootwin) |
673 { | 675 { |
675 HideMenuBar(); | 677 HideMenuBar(); |
676 HideCursor(); | 678 HideCursor(); |
677 mouseHide = YES; | 679 mouseHide = YES; |
678 } | 680 } |
679 | 681 |
680 panscan_calc(); | |
681 old_frame = [window frame]; //save main window size & position | 682 old_frame = [window frame]; //save main window size & position |
682 [window setFrame:device_rect display:YES animate:animate]; //zoom-in window with nice useless sfx | 683 [window setFrame:device_rect display:YES animate:animate]; //zoom-in window with nice useless sfx |
683 old_view_frame = [self bounds]; | 684 old_view_frame = [self bounds]; |
684 | 685 |
685 //fix origin for multi screen setup | 686 //fix origin for multi screen setup |