From: Derk-Jan Hartman Date: Mon, 10 Feb 2003 21:28:16 +0000 (+0000) Subject: * fixed the black bar issue with window half/normal/double window sizes in X-Git-Tag: 0.5.1~66 X-Git-Url: https://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=adc787f4b23fdd6a255c9488959d7857430d3261;hp=63464c45dd3b3ce86188ba593dd2353f87952798 * fixed the black bar issue with window half/normal/double window sizes in OSX. i had forgotten the aspectratio. --- diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m index ef6e678b7b..22ac0dcd4f 100644 --- a/modules/gui/macosx/vout.m +++ b/modules/gui/macosx/vout.m @@ -2,7 +2,7 @@ * vout.m: MacOS X video output plugin ***************************************************************************** * Copyright (C) 2001-2003 VideoLAN - * $Id: vout.m,v 1.27 2003/02/08 21:43:26 hartman Exp $ + * $Id: vout.m,v 1.28 2003/02/10 21:28:16 hartman Exp $ * * Authors: Colin Delacroix * Florian G. Pflug @@ -728,6 +728,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic ) - (void)scaleWindowWithFactor: (float)factor { NSSize newsize; + int i_corrected_height; NSPoint topleftbase; NSPoint topleftscreen; @@ -737,8 +738,10 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic ) topleftbase.y = [self frame].size.height; topleftscreen = [self convertBaseToScreen: topleftbase]; + i_corrected_height = p_vout->output.i_width * VOUT_ASPECT_FACTOR / + p_vout->output.i_aspect; newsize.width = (int) ( p_vout->render.i_width * factor ); - newsize.height = (int) ( p_vout->render.i_height * factor ); + newsize.height = (int) ( i_corrected_height * factor ); [self setContentSize: newsize]; [self setFrameTopLeftPoint: topleftscreen];