mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 18:04:41 +00:00
implement DC_BITMAP for GetStockObject.
it works for any apps want it. and using this undoc value testcase exists in w32knapi have been run in windows and reactos. svn path=/trunk/; revision=33412
This commit is contained in:
parent
ea9d73b0f2
commit
25fb37a67f
|
@ -107,7 +107,10 @@ static LOGFONTW DefaultGuiFont =
|
||||||
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
|
{ 11, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET,
|
||||||
0, 0, DEFAULT_QUALITY, VARIABLE_PITCH | FF_SWISS, L"MS Sans Serif" }; //Bitstream Vera Sans
|
0, 0, DEFAULT_QUALITY, VARIABLE_PITCH | FF_SWISS, L"MS Sans Serif" }; //Bitstream Vera Sans
|
||||||
|
|
||||||
#define NB_STOCK_OBJECTS (STOCK_LAST + 1)
|
/* Comments from wine reserve two extra entry for the stock default bitmap this is what Windows does too
|
||||||
|
* and verify if it it is true it is not. in XP/2003 it is 22 stockobjects for each bitmap
|
||||||
|
*/
|
||||||
|
#define NB_STOCK_OBJECTS (STOCK_LAST + 3)
|
||||||
|
|
||||||
static HGDIOBJ StockObjects[NB_STOCK_OBJECTS];
|
static HGDIOBJ StockObjects[NB_STOCK_OBJECTS];
|
||||||
|
|
||||||
|
@ -136,6 +139,8 @@ CreateStockObjects(void)
|
||||||
StockObjects[DC_PEN] = IntGdiExtCreatePen(BlackPen.lopnStyle, BlackPen.lopnWidth.x, BS_SOLID, BlackPen.lopnColor, 0, 0, 0, NULL, 0, TRUE, NULL);
|
StockObjects[DC_PEN] = IntGdiExtCreatePen(BlackPen.lopnStyle, BlackPen.lopnWidth.x, BS_SOLID, BlackPen.lopnColor, 0, 0, 0, NULL, 0, TRUE, NULL);
|
||||||
StockObjects[NULL_PEN] = IntGdiExtCreatePen(NullPen.lopnStyle, NullPen.lopnWidth.x, BS_SOLID, NullPen.lopnColor, 0, 0, 0, NULL, 0, TRUE, NULL);
|
StockObjects[NULL_PEN] = IntGdiExtCreatePen(NullPen.lopnStyle, NullPen.lopnWidth.x, BS_SOLID, NullPen.lopnColor, 0, 0, 0, NULL, 0, TRUE, NULL);
|
||||||
|
|
||||||
|
StockObjects[DC_BITMAP] = IntGdiCreateBitmap (1, 1, 1, 1, NULL);
|
||||||
|
|
||||||
(void) TextIntCreateFontIndirect(&OEMFixedFont, (HFONT*)&StockObjects[OEM_FIXED_FONT]);
|
(void) TextIntCreateFontIndirect(&OEMFixedFont, (HFONT*)&StockObjects[OEM_FIXED_FONT]);
|
||||||
(void) TextIntCreateFontIndirect(&AnsiFixedFont, (HFONT*)&StockObjects[ANSI_FIXED_FONT]);
|
(void) TextIntCreateFontIndirect(&AnsiFixedFont, (HFONT*)&StockObjects[ANSI_FIXED_FONT]);
|
||||||
(void) TextIntCreateFontIndirect(&SystemFont, (HFONT*)&StockObjects[SYSTEM_FONT]);
|
(void) TextIntCreateFontIndirect(&SystemFont, (HFONT*)&StockObjects[SYSTEM_FONT]);
|
||||||
|
|
Loading…
Reference in a new issue