]> git.sesse.net Git - vlc/commitdiff
win32text: simplify
authorPierre Ynard <linkfanel@yahoo.fr>
Thu, 17 Sep 2009 12:45:25 +0000 (14:45 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Thu, 17 Sep 2009 12:45:25 +0000 (14:45 +0200)
modules/misc/win32text.c

index e8c430961943bb27f9eb6eea8e3e498598178d24..c172d8809950e6f6b964d24fe7ddeccd7eb3cbbd 100644 (file)
@@ -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);