[vlc-devel] commit: win32text: simplify (Pierre Ynard )
git version control
git at videolan.org
Thu Sep 17 14:45:51 CEST 2009
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Sep 17 14:45:25 2009 +0200| [6ab91ae208b1c1bf9481728c9526ea03de038556] | committer: Pierre Ynard
win32text: simplify
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ab91ae208b1c1bf9481728c9526ea03de038556
---
modules/misc/win32text.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/misc/win32text.c b/modules/misc/win32text.c
index e8c4309..c172d88 100644
--- a/modules/misc/win32text.c
+++ b/modules/misc/win32text.c
@@ -344,8 +344,7 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
SetTextColor( p_sys->hcdc, RGB( (i_font_color >> 16) & 0xff,
(i_font_color >> 8) & 0xff, i_font_color & 0xff) );
- GetTextExtentExPoint( p_sys->hcdc, psz_string, _tcslen(psz_string),
- 0, 0, 0, &size );
+ GetTextExtentPoint( p_sys->hcdc, psz_string, _tcslen(psz_string), &size );
i_width = rect.right = size.cx; i_height = rect.bottom = size.cy;
p_bmi = malloc(sizeof(BITMAPINFOHEADER) + sizeof(RGBQUAD)*16);
More information about the vlc-devel
mailing list