mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +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))
|
if(!MultiByteToWideChar(CP_ACP, 0, lfa->lfFaceName, -1, lfw.lfFaceName, LF_FACESIZE))
|
||||||
return GenericError;
|
return GenericError;
|
||||||
|
|
||||||
GdipCreateFontFromLogfontW(hdc, &lfw, font);
|
return GdipCreateFontFromLogfontW(hdc, &lfw, font);
|
||||||
|
|
||||||
return Ok;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
@ -301,7 +299,7 @@ GpStatus WINGDIPAPI GdipGetFamily(GpFont *font, GpFontFamily **family)
|
||||||
*
|
*
|
||||||
* RETURNS
|
* RETURNS
|
||||||
* SUCCESS: Ok
|
* SUCCESS: Ok
|
||||||
* FAILURE: InvalidParamter (font or size was NULL)
|
* FAILURE: InvalidParameter (font or size was NULL)
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* Size returned is actually emSize -- not internal size used for drawing.
|
* 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) );
|
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 GenericError;
|
||||||
|
|
||||||
return Ok;
|
return Ok;
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
@ stdcall GdipBitmapGetPixel(ptr long long ptr)
|
@ stdcall GdipBitmapGetPixel(ptr long long ptr)
|
||||||
@ stdcall GdipBitmapLockBits(ptr ptr long long ptr)
|
@ stdcall GdipBitmapLockBits(ptr ptr long long ptr)
|
||||||
@ stub GdipBitmapSetPixel
|
@ stub GdipBitmapSetPixel
|
||||||
@ stub GdipBitmapSetResolution
|
@ stdcall GdipBitmapSetResolution(ptr long long)
|
||||||
@ stdcall GdipBitmapUnlockBits(ptr ptr)
|
@ stdcall GdipBitmapUnlockBits(ptr ptr)
|
||||||
@ stdcall GdipClearPathMarkers(ptr)
|
@ stdcall GdipClearPathMarkers(ptr)
|
||||||
@ stub GdipCloneBitmapArea
|
@ stub GdipCloneBitmapArea
|
||||||
|
|
|
@ -192,6 +192,13 @@ GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap* bitmap, GDIPCONST GpRect* rect,
|
||||||
return Ok;
|
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,
|
GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap,
|
||||||
BitmapData* lockeddata)
|
BitmapData* lockeddata)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue