gdi32: Add support for pushing a font driver on the DC driver stack.

oldstable
Alexandre Julliard 2011-10-18 11:43:23 +02:00
parent 764d3d6a69
commit 6bb001da6f
3 changed files with 9 additions and 0 deletions

View File

@ -154,6 +154,12 @@ DC *alloc_dc_ptr( WORD magic )
return NULL;
}
dc->nulldrv.hdc = dc->hSelf;
if (font_driver && !font_driver->pCreateDC( &dc->physDev, NULL, NULL, NULL, NULL ))
{
free_dc_ptr( dc );
return NULL;
}
return dc;
}

View File

@ -49,6 +49,8 @@ struct graphics_driver
static struct list drivers = LIST_INIT( drivers );
static struct graphics_driver *display_driver;
const struct gdi_dc_funcs *font_driver = NULL;
static CRITICAL_SECTION driver_section;
static CRITICAL_SECTION_DEBUG critsect_debug =
{

View File

@ -270,6 +270,7 @@ extern DWORD blend_bitmapinfo( const BITMAPINFO *src_info, void *src_bits, struc
/* driver.c */
extern const struct gdi_dc_funcs null_driver DECLSPEC_HIDDEN;
extern const struct gdi_dc_funcs dib_driver DECLSPEC_HIDDEN;
extern const struct gdi_dc_funcs *font_driver DECLSPEC_HIDDEN;
extern const struct gdi_dc_funcs *DRIVER_load_driver( LPCWSTR name ) DECLSPEC_HIDDEN;
extern BOOL DRIVER_GetDriverName( LPCWSTR device, LPWSTR driver, DWORD size ) DECLSPEC_HIDDEN;