mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[WIN32K]
- Add some code stub and comments for realizing DIB brush palettes - Move some function prototypes svn path=/trunk/; revision=56477
This commit is contained in:
parent
710a09d490
commit
bbbd338d81
3 changed files with 29 additions and 15 deletions
|
@ -38,6 +38,7 @@ EBRUSHOBJ_vInit(EBRUSHOBJ *pebo, PBRUSH pbrush, PDC pdc)
|
|||
|
||||
pebo->ppalSurf = pebo->psurfTrg->ppal;
|
||||
GDIOBJ_vReferenceObjectByPointer(&pebo->ppalSurf->BaseObject);
|
||||
//pebo->ppalDC = pdc->dclevel.ppal;
|
||||
|
||||
if (pbrush->flAttrs & GDIBRUSH_IS_NULL)
|
||||
{
|
||||
|
@ -194,6 +195,7 @@ EBRUSHOBJ_bRealizeBrush(EBRUSHOBJ *pebo, BOOL bCallDriver)
|
|||
PSURFACE psurfPattern, psurfMask;
|
||||
PPDEVOBJ ppdev = NULL;
|
||||
EXLATEOBJ exlo;
|
||||
PPALETTE ppalPattern;
|
||||
|
||||
/* All EBRUSHOBJs have a surface, see EBRUSHOBJ_vInit */
|
||||
ASSERT(pebo->psurfTrg);
|
||||
|
@ -214,9 +216,22 @@ EBRUSHOBJ_bRealizeBrush(EBRUSHOBJ *pebo, BOOL bCallDriver)
|
|||
/* FIXME: implement mask */
|
||||
psurfMask = NULL;
|
||||
|
||||
/* DIB brushes with DIB_PAL_COLORS usage need a new palette */
|
||||
if (pebo->pbrush->flAttrs & GDIBRUSH_IS_DIBPALCOLORS)
|
||||
{
|
||||
ASSERT(FALSE);
|
||||
ppalPattern = 0; //CreateDIBPalette(psurfPattern->ppal, pebo->ppalDC);
|
||||
// pebo->ppalDIB = ppalPattern;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* The palette is already as it should be */
|
||||
ppalPattern = psurfPattern->ppal;
|
||||
}
|
||||
|
||||
/* Initialize XLATEOBJ for the brush */
|
||||
EXLATEOBJ_vInitialize(&exlo,
|
||||
psurfPattern->ppal,
|
||||
ppalPattern,
|
||||
pebo->psurfTrg->ppal,
|
||||
0,
|
||||
pebo->crCurrentBack,
|
||||
|
|
|
@ -141,3 +141,16 @@ EBRUSHOBJ_iSetSolidColor(EBRUSHOBJ *pebo, ULONG iSolidColor)
|
|||
BOOL FASTCALL IntGdiSetBrushOwner(PBRUSH,DWORD);
|
||||
BOOL FASTCALL GreSetBrushOwner(HBRUSH,DWORD);
|
||||
|
||||
HBRUSH APIENTRY
|
||||
IntGdiCreatePatternBrush(
|
||||
HBITMAP hBitmap);
|
||||
|
||||
HBRUSH APIENTRY
|
||||
IntGdiCreateSolidBrush(
|
||||
COLORREF Color);
|
||||
|
||||
HBRUSH APIENTRY
|
||||
IntGdiCreateNullBrush(VOID);
|
||||
|
||||
VOID FASTCALL
|
||||
IntGdiSetSolidBrushColor(HBRUSH hBrush, COLORREF Color);
|
||||
|
|
|
@ -5,20 +5,6 @@
|
|||
extern HDC hSystemBM;
|
||||
extern HSEMAPHORE hsemDriverMgmt;
|
||||
|
||||
HBRUSH APIENTRY
|
||||
IntGdiCreatePatternBrush(
|
||||
HBITMAP hBitmap);
|
||||
|
||||
HBRUSH APIENTRY
|
||||
IntGdiCreateSolidBrush(
|
||||
COLORREF Color);
|
||||
|
||||
HBRUSH APIENTRY
|
||||
IntGdiCreateNullBrush(VOID);
|
||||
|
||||
VOID FASTCALL
|
||||
IntGdiSetSolidBrushColor(HBRUSH hBrush, COLORREF Color);
|
||||
|
||||
/* Line functions */
|
||||
|
||||
BOOL FASTCALL
|
||||
|
|
Loading…
Reference in a new issue