mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 22:35:51 +00:00
- Sync gdiplus with Wine 1.1.20
svn path=/trunk/; revision=40796
This commit is contained in:
parent
57e86f2709
commit
95a4fce528
3 changed files with 11 additions and 6 deletions
|
@ -224,9 +224,7 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc,
|
|||
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 @@ GpStatus WINGDIPAPI GdipGetFamily(GpFont *font, GpFontFamily **family)
|
|||
*
|
||||
* 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 @@ GpStatus WINGDIPAPI GdipGetLogFontA(GpFont *font, GpGraphics *graphics,
|
|||
|
||||
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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -192,6 +192,13 @@ GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap* bitmap, GDIPCONST GpRect* rect,
|
|||
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,
|
||||
BitmapData* lockeddata)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue