gdi32: Add support for pushing a font driver on the DC driver stack.
This commit is contained in:
parent
764d3d6a69
commit
6bb001da6f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 =
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue