mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 12:47:44 +00:00
dwrite: Forward CreateRenderingParams() to CreateMonitorRenderingParams() with primary monitor.
This commit is contained in:
parent
7707ca7d09
commit
0990d37d98
2 changed files with 10 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
MODULE = dwrite.dll
|
||||
IMPORTLIB = dwrite
|
||||
IMPORTS = gdi32
|
||||
IMPORTS = user32 gdi32
|
||||
|
||||
C_SRCS = \
|
||||
font.c \
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "winuser.h"
|
||||
|
||||
#include "initguid.h"
|
||||
#include "dwrite.h"
|
||||
|
@ -249,8 +250,14 @@ static HRESULT WINAPI dwritefactory_CreateFontFace(IDWriteFactory *iface,
|
|||
|
||||
static HRESULT WINAPI dwritefactory_CreateRenderingParams(IDWriteFactory *iface, IDWriteRenderingParams **params)
|
||||
{
|
||||
FIXME("(%p): stub\n", params);
|
||||
return E_NOTIMPL;
|
||||
HMONITOR monitor;
|
||||
POINT pt;
|
||||
|
||||
TRACE("(%p)\n", params);
|
||||
|
||||
pt.x = pt.y = 0;
|
||||
monitor = MonitorFromPoint(pt, MONITOR_DEFAULTTOPRIMARY);
|
||||
return IDWriteFactory_CreateMonitorRenderingParams(iface, monitor, params);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI dwritefactory_CreateMonitorRenderingParams(IDWriteFactory *iface, HMONITOR monitor,
|
||||
|
|
Loading…
Reference in a new issue