wineps.drv: Disable world transform for fonts in GM_COMPATIBLE mode.
This commit is contained in:
parent
7d21d9361c
commit
69f88da187
|
@ -20,6 +20,7 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -271,6 +272,12 @@ BOOL PSDRV_WriteSetDownloadFont(PSDRV_PDEVICE *physDev)
|
|||
/* Retrieve the world -> device transform */
|
||||
GetTransform(physDev->hdc, 0x204, &xform);
|
||||
|
||||
if(GetGraphicsMode(physDev->hdc) == GM_COMPATIBLE)
|
||||
{
|
||||
xform.eM11 = xform.eM22 = fabs(xform.eM22);
|
||||
xform.eM21 = xform.eM12 = 0;
|
||||
}
|
||||
|
||||
physDev->font.size.xx = ps_round(ppem * xform.eM11);
|
||||
physDev->font.size.xy = ps_round(ppem * xform.eM12);
|
||||
physDev->font.size.yx = ps_round(ppem * xform.eM21);
|
||||
|
|
Loading…
Reference in New Issue