dwrite: Forward CreateRenderingParams() to CreateMonitorRenderingParams() with primary monitor.

This commit is contained in:
Nikolay Sivov 2012-10-01 09:35:00 +04:00 committed by Alexandre Julliard
parent 7707ca7d09
commit 0990d37d98
2 changed files with 10 additions and 3 deletions

View file

@ -1,6 +1,6 @@
MODULE = dwrite.dll
IMPORTLIB = dwrite
IMPORTS = gdi32
IMPORTS = user32 gdi32
C_SRCS = \
font.c \

View file

@ -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,