ReactOS 0.4.15-dev-8131-g4988de4
paint.c File Reference
#include <win32k.h>
#include <debug.h>
Include dependency graph for paint.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

BOOL APIENTRY FillSolid (SURFOBJ *pso, PRECTL pRect, ULONG iColor)
 
BOOL APIENTRY EngPaint (_In_ SURFOBJ *pso, _In_ CLIPOBJ *pco, _In_ BRUSHOBJ *pbo, _In_ POINTL *pptlBrushOrg, _In_ __in_data_source(USER_MODE) MIX mix)
 
BOOL APIENTRY IntEngPaint (_In_ SURFOBJ *pso, _In_ CLIPOBJ *pco, _In_ BRUSHOBJ *pbo, _In_ POINTL *pptlBrushOrg, _In_ __in_data_source(USER_MODE) MIX mix)
 

Variables

const BYTE gajRop2ToRop3 [16]
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file paint.c.

Function Documentation

◆ EngPaint()

BOOL APIENTRY EngPaint ( _In_ SURFOBJ pso,
_In_ CLIPOBJ pco,
_In_ BRUSHOBJ pbo,
_In_ POINTL pptlBrushOrg,
_In_ __in_data_source(USER_MODE) MIX  mix 
)

Definition at line 54 of file paint.c.

60{
61 ROP4 rop4;
62
63 /* Convert the MIX, consisting of 2 ROP2 codes into a ROP4 */
65
66 /* Sanity check */
68
69 /* Forward the call to Eng/DrvBitBlt */
70 return IntEngBitBlt(pso,
71 NULL,
72 NULL,
73 pco,
74 NULL,
75 &pco->rclBounds,
76 NULL,
77 NULL,
78 pbo,
80 rop4);
81}
#define NULL
Definition: types.h:112
#define MIX_TO_ROP4(mix)
Definition: eng.h:5
#define ROP4_USES_SOURCE(Rop4)
Definition: inteng.h:45
BOOL APIENTRY IntEngBitBlt(SURFOBJ *psoTrg, SURFOBJ *psoSrc, SURFOBJ *psoMask, CLIPOBJ *pco, XLATEOBJ *pxlo, RECTL *prclTrg, POINTL *pptlSrc, POINTL *pptlMask, BRUSHOBJ *pbo, POINTL *pptlBrush, ROP4 Rop4)
Definition: bitblt.c:656
_In_ PATHOBJ _In_ CLIPOBJ _In_ BRUSHOBJ _In_ POINTL _In_ MIX mix
Definition: winddi.h:3595
_In_ HANDLE _In_ SURFOBJ * pso
Definition: winddi.h:3665
_In_opt_ SURFOBJ _In_opt_ SURFOBJ _In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ RECTL _In_opt_ POINTL _In_opt_ POINTL _In_opt_ BRUSHOBJ _In_opt_ POINTL _In_ ROP4 rop4
Definition: winddi.h:3442
_In_opt_ SURFOBJ _In_opt_ SURFOBJ _In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ RECTL _In_opt_ POINTL _In_opt_ POINTL _In_opt_ BRUSHOBJ * pbo
Definition: winddi.h:3440
_In_ PATHOBJ _In_ CLIPOBJ _In_ BRUSHOBJ _In_ POINTL * pptlBrushOrg
Definition: winddi.h:3594
ULONG ROP4
Definition: winddi.h:128
_In_ SURFOBJ _In_ CLIPOBJ * pco
Definition: winddi.h:3415
#define NT_ASSERT
Definition: rtlfuncs.h:3310

Referenced by IntEngPaint().

◆ FillSolid()

BOOL APIENTRY FillSolid ( SURFOBJ pso,
PRECTL  pRect,
ULONG  iColor 
)

Definition at line 35 of file paint.c.

36{
37 LONG y;
38 ULONG LineWidth;
39
40 ASSERT(pso);
41 ASSERT(pRect);
42 LineWidth = pRect->right - pRect->left;
43 DPRINT(" LineWidth: %lu, top: %ld, bottom: %ld\n", LineWidth, pRect->top, pRect->bottom);
44 for (y = pRect->top; y < pRect->bottom; y++)
45 {
47 pso, pRect->left, pRect->right, y, iColor);
48 }
49 return TRUE;
50}
#define TRUE
Definition: types.h:120
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLint GLint bottom
Definition: glext.h:7726
#define ASSERT(a)
Definition: mode.c:44
long LONG
Definition: pedump.c:60
#define DPRINT
Definition: sndvol32.h:73
PFN_DIB_HLine DIB_HLine
Definition: dib.h:47
long bottom
Definition: polytest.cpp:53
long right
Definition: polytest.cpp:53
long top
Definition: polytest.cpp:53
long left
Definition: polytest.cpp:53
uint32_t ULONG
Definition: typedefs.h:59
DIB_FUNCTIONS DibFunctionsForBitmapFormat[]
Definition: dib.c:20
_In_ ULONG iColor
Definition: xlateobj.h:17

Referenced by EngEraseSurface(), ui_draw_glyph(), ui_draw_text(), ui_ellipse(), ui_patblt(), and ui_polygon().

◆ IntEngPaint()

BOOL APIENTRY IntEngPaint ( _In_ SURFOBJ pso,
_In_ CLIPOBJ pco,
_In_ BRUSHOBJ pbo,
_In_ POINTL pptlBrushOrg,
_In_ __in_data_source(USER_MODE) MIX  mix 
)

Definition at line 85 of file paint.c.

91{
92 SURFACE *psurf = CONTAINING_RECORD(pso, SURFACE, SurfObj);
93
94 /* Is the surface's Paint function hooked? */
95 if ((pso->iType != STYPE_BITMAP) && (psurf->flags & HOOK_PAINT))
96 {
97 /* Call the driver's DrvPaint */
98 return GDIDEVFUNCS(pso).Paint(pso, pco, pbo, pptlBrushOrg, mix);
99 }
100
101 return EngPaint(pso, pco, pbo, pptlBrushOrg, mix);
102}
FLONG flags
Definition: surface.h:10
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
BOOL APIENTRY EngPaint(_In_ SURFOBJ *pso, _In_ CLIPOBJ *pco, _In_ BRUSHOBJ *pbo, _In_ POINTL *pptlBrushOrg, _In_ __in_data_source(USER_MODE) MIX mix)
Definition: paint.c:54
#define GDIDEVFUNCS(SurfObj)
Definition: surface.h:106
#define STYPE_BITMAP
Definition: winddi.h:1175
#define HOOK_PAINT
Definition: winddi.h:1424

Referenced by IntGdiFillRgn().

Variable Documentation

◆ gajRop2ToRop3

const BYTE gajRop2ToRop3[16]
Initial value:
=
{
0x00,
0x05,
0x0A,
0x0F,
0x50,
0x55,
0x5A,
0x5F,
0xA0,
0xA5,
0xAA,
0xAF,
0xF0,
0xF5,
0xFA,
0xFF,
}

Definition at line 15 of file paint.c.