Author: dchapyshev
Date: Tue May 5 19:35:05 2009
New Revision: 40796
URL:
http://svn.reactos.org/svn/reactos?rev=40796&view=rev
Log:
- Sync gdiplus with Wine 1.1.20
Modified:
trunk/reactos/dll/win32/gdiplus/font.c
trunk/reactos/dll/win32/gdiplus/gdiplus.spec
trunk/reactos/dll/win32/gdiplus/image.c
Modified: trunk/reactos/dll/win32/gdiplus/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdiplus/font.c?r…
==============================================================================
--- trunk/reactos/dll/win32/gdiplus/font.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdiplus/font.c [iso-8859-1] Tue May 5 19:35:05 2009
@@ -224,9 +224,7 @@
if(!MultiByteToWideChar(CP_ACP, 0, lfa->lfFaceName, -1, lfw.lfFaceName,
LF_FACESIZE))
return GenericError;
- GdipCreateFontFromLogfontW(hdc, &lfw, font);
-
- return Ok;
+ return GdipCreateFontFromLogfontW(hdc, &lfw, font);
}
/*******************************************************************************
@@ -301,7 +299,7 @@
*
* RETURNS
* SUCCESS: Ok
- * FAILURE: InvalidParamter (font or size was NULL)
+ * FAILURE: InvalidParameter (font or size was NULL)
*
* NOTES
* Size returned is actually emSize -- not internal size used for drawing.
@@ -390,7 +388,7 @@
memcpy(lfa, &lfw, FIELD_OFFSET(LOGFONTA,lfFaceName) );
- if(!MultiByteToWideChar(CP_ACP, 0, lfa->lfFaceName, -1, lfw.lfFaceName,
LF_FACESIZE))
+ if(!WideCharToMultiByte(CP_ACP, 0, lfw.lfFaceName, -1, lfa->lfFaceName,
LF_FACESIZE, NULL, NULL))
return GenericError;
return Ok;
Modified: trunk/reactos/dll/win32/gdiplus/gdiplus.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdiplus/gdiplus.…
==============================================================================
--- trunk/reactos/dll/win32/gdiplus/gdiplus.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdiplus/gdiplus.spec [iso-8859-1] Tue May 5 19:35:05 2009
@@ -43,7 +43,7 @@
@ stdcall GdipBitmapGetPixel(ptr long long ptr)
@ stdcall GdipBitmapLockBits(ptr ptr long long ptr)
@ stub GdipBitmapSetPixel
-@ stub GdipBitmapSetResolution
+@ stdcall GdipBitmapSetResolution(ptr long long)
@ stdcall GdipBitmapUnlockBits(ptr ptr)
@ stdcall GdipClearPathMarkers(ptr)
@ stub GdipCloneBitmapArea
Modified: trunk/reactos/dll/win32/gdiplus/image.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdiplus/image.c?…
==============================================================================
--- trunk/reactos/dll/win32/gdiplus/image.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdiplus/image.c [iso-8859-1] Tue May 5 19:35:05 2009
@@ -190,6 +190,13 @@
GdipFree(pbmi);
return Ok;
+}
+
+GpStatus WINGDIPAPI GdipBitmapSetResolution(GpBitmap* bitmap, REAL xdpi, REAL ydpi)
+{
+ FIXME("(%p, %.2f, %.2f)\n", bitmap, xdpi, ydpi);
+
+ return NotImplemented;
}
GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap,