forked from Mirrors/wine-wine
gdi32: Add support for pushing a font driver on the DC driver stack.
parent
764d3d6a69
commit
6bb001da6f
|
@ -154,6 +154,12 @@ DC *alloc_dc_ptr( WORD magic )
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
dc->nulldrv.hdc = dc->hSelf;
|
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;
|
return dc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,8 @@ struct graphics_driver
|
||||||
static struct list drivers = LIST_INIT( drivers );
|
static struct list drivers = LIST_INIT( drivers );
|
||||||
static struct graphics_driver *display_driver;
|
static struct graphics_driver *display_driver;
|
||||||
|
|
||||||
|
const struct gdi_dc_funcs *font_driver = NULL;
|
||||||
|
|
||||||
static CRITICAL_SECTION driver_section;
|
static CRITICAL_SECTION driver_section;
|
||||||
static CRITICAL_SECTION_DEBUG critsect_debug =
|
static CRITICAL_SECTION_DEBUG critsect_debug =
|
||||||
{
|
{
|
||||||
|
|
|
@ -270,6 +270,7 @@ extern DWORD blend_bitmapinfo( const BITMAPINFO *src_info, void *src_bits, struc
|
||||||
/* driver.c */
|
/* driver.c */
|
||||||
extern const struct gdi_dc_funcs null_driver DECLSPEC_HIDDEN;
|
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 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 const struct gdi_dc_funcs *DRIVER_load_driver( LPCWSTR name ) DECLSPEC_HIDDEN;
|
||||||
extern BOOL DRIVER_GetDriverName( LPCWSTR device, LPWSTR driver, DWORD size ) DECLSPEC_HIDDEN;
|
extern BOOL DRIVER_GetDriverName( LPCWSTR device, LPWSTR driver, DWORD size ) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue