ReactOS  0.4.14-dev-77-gd9e7c48
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 */
64  rop4 = MIX_TO_ROP4(mix);
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 }
_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:3433
ULONG ROP4
Definition: winddi.h:128
_In_ PATHOBJ _In_ CLIPOBJ _In_ BRUSHOBJ _In_ POINTL * pptlBrushOrg
Definition: winddi.h:3591
smooth NULL
Definition: ftsmooth.c:416
#define ROP4_USES_SOURCE(Rop4)
Definition: inteng.h:45
_In_ HANDLE _In_ SURFOBJ * pso
Definition: winddi.h:3664
_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:3433
_In_ SURFOBJ _In_ CLIPOBJ * pco
Definition: winddi.h:3414
_In_ PATHOBJ _In_ CLIPOBJ _In_ BRUSHOBJ _In_ POINTL _In_ MIX mix
Definition: winddi.h:3591
#define MIX_TO_ROP4(mix)
Definition: eng.h:5
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:604
#define NT_ASSERT
Definition: rtlfuncs.h:3312

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
long bottom
Definition: polytest.cpp:53
long right
Definition: polytest.cpp:53
long LONG
Definition: pedump.c:60
long top
Definition: polytest.cpp:53
void DPRINT(...)
Definition: polytest.cpp:61
GLint GLint bottom
Definition: glext.h:7726
long left
Definition: polytest.cpp:53
_In_ HANDLE _In_ SURFOBJ * pso
Definition: winddi.h:3664
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
PFN_DIB_HLine DIB_HLine
Definition: dib.h:47
DIB_FUNCTIONS DibFunctionsForBitmapFormat[]
Definition: dib.c:20
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
unsigned int ULONG
Definition: retypes.h:1
_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 }
#define STYPE_BITMAP
Definition: winddi.h:1175
_In_ PATHOBJ _In_ CLIPOBJ _In_ BRUSHOBJ _In_ POINTL * pptlBrushOrg
Definition: winddi.h:3591
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560
_In_ HANDLE _In_ SURFOBJ * pso
Definition: winddi.h:3664
_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:3433
#define GDIDEVFUNCS(SurfObj)
Definition: surface.h:106
_In_ SURFOBJ _In_ CLIPOBJ * pco
Definition: winddi.h:3414
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
FLONG flags
Definition: surface.h:10
_In_ PATHOBJ _In_ CLIPOBJ _In_ BRUSHOBJ _In_ POINTL _In_ MIX mix
Definition: winddi.h:3591
#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.