diff --git a/dlls/gdi/enhmfdrv/dc.c b/dlls/gdi/enhmfdrv/dc.c index 4049ecae7f..fc320c7071 100644 --- a/dlls/gdi/enhmfdrv/dc.c +++ b/dlls/gdi/enhmfdrv/dc.c @@ -62,6 +62,16 @@ UINT EMFDRV_SetTextAlign( PHYSDEV dev, UINT align ) return EMFDRV_WriteRecord( dev, &emr.emr ); } +BOOL EMFDRV_SetTextJustification(PHYSDEV dev, INT nBreakExtra, INT nBreakCount) +{ + EMRSETTEXTJUSTIFICATION emr; + emr.emr.iType = EMR_SETTEXTJUSTIFICATION; + emr.emr.nSize = sizeof(emr); + emr.nBreakExtra = nBreakExtra; + emr.nBreakCount = nBreakCount; + return EMFDRV_WriteRecord(dev, &emr.emr); +} + INT EMFDRV_SetBkMode( PHYSDEV dev, INT mode ) { EMRSETBKMODE emr; diff --git a/dlls/gdi/enhmfdrv/enhmetafiledrv.h b/dlls/gdi/enhmfdrv/enhmetafiledrv.h index 47a072d1ac..f01ce3185a 100644 --- a/dlls/gdi/enhmfdrv/enhmetafiledrv.h +++ b/dlls/gdi/enhmfdrv/enhmetafiledrv.h @@ -135,6 +135,8 @@ extern INT EMFDRV_SetROP2( PHYSDEV dev, INT rop ); extern INT EMFDRV_SetStretchBltMode( PHYSDEV dev, INT mode ); extern UINT EMFDRV_SetTextAlign( PHYSDEV dev, UINT align ); extern COLORREF EMFDRV_SetTextColor( PHYSDEV dev, COLORREF color ); +extern BOOL EMFDRV_SetTextJustification( PHYSDEV dev, INT nBreakExtra, + INT nBreakCount ); extern INT EMFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y ); extern INT EMFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y ); extern INT EMFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y ); diff --git a/dlls/gdi/enhmfdrv/init.c b/dlls/gdi/enhmfdrv/init.c index 6385ea8fed..d9ad2320c1 100644 --- a/dlls/gdi/enhmfdrv/init.c +++ b/dlls/gdi/enhmfdrv/init.c @@ -133,7 +133,7 @@ static const DC_FUNCTIONS EMFDRV_Funcs = EMFDRV_SetTextAlign, /* pSetTextAlign */ NULL, /* pSetTextCharacterExtra */ EMFDRV_SetTextColor, /* pSetTextColor */ - NULL, /* pSetTextJustification */ + EMFDRV_SetTextJustification, /* pSetTextJustification */ EMFDRV_SetViewportExt, /* pSetViewportExt */ EMFDRV_SetViewportOrg, /* pSetViewportOrg */ EMFDRV_SetWindowExt, /* pSetWindowExt */