mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
rdpBrushCache now opaque
This commit is contained in:
26
include/freerdp/cache/brush.h
vendored
26
include/freerdp/cache/brush.h
vendored
@@ -27,36 +27,10 @@
|
||||
|
||||
#include <winpr/stream.h>
|
||||
|
||||
typedef struct _BRUSH_ENTRY BRUSH_ENTRY;
|
||||
typedef struct rdp_brush_cache rdpBrushCache;
|
||||
|
||||
#include <freerdp/cache/cache.h>
|
||||
|
||||
struct _BRUSH_ENTRY
|
||||
{
|
||||
UINT32 bpp;
|
||||
void* entry;
|
||||
};
|
||||
|
||||
struct rdp_brush_cache
|
||||
{
|
||||
pPatBlt PatBlt; /* 0 */
|
||||
pCacheBrush CacheBrush; /* 1 */
|
||||
pPolygonSC PolygonSC; /* 2 */
|
||||
pPolygonCB PolygonCB; /* 3 */
|
||||
UINT32 paddingA[16 - 4]; /* 4 */
|
||||
|
||||
UINT32 maxEntries; /* 16 */
|
||||
UINT32 maxMonoEntries; /* 17 */
|
||||
BRUSH_ENTRY* entries; /* 18 */
|
||||
BRUSH_ENTRY* monoEntries; /* 19 */
|
||||
UINT32 paddingB[32 - 20]; /* 20 */
|
||||
|
||||
/* internal */
|
||||
|
||||
rdpSettings* settings;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
|
||||
26
libfreerdp/cache/brush.c
vendored
26
libfreerdp/cache/brush.c
vendored
@@ -35,6 +35,32 @@
|
||||
|
||||
#define TAG FREERDP_TAG("cache.brush")
|
||||
|
||||
struct _BRUSH_ENTRY
|
||||
{
|
||||
UINT32 bpp;
|
||||
void* entry;
|
||||
};
|
||||
typedef struct _BRUSH_ENTRY BRUSH_ENTRY;
|
||||
|
||||
struct rdp_brush_cache
|
||||
{
|
||||
pPatBlt PatBlt; /* 0 */
|
||||
pCacheBrush CacheBrush; /* 1 */
|
||||
pPolygonSC PolygonSC; /* 2 */
|
||||
pPolygonCB PolygonCB; /* 3 */
|
||||
UINT32 paddingA[16 - 4]; /* 4 */
|
||||
|
||||
UINT32 maxEntries; /* 16 */
|
||||
UINT32 maxMonoEntries; /* 17 */
|
||||
BRUSH_ENTRY* entries; /* 18 */
|
||||
BRUSH_ENTRY* monoEntries; /* 19 */
|
||||
UINT32 paddingB[32 - 20]; /* 20 */
|
||||
|
||||
/* internal */
|
||||
|
||||
rdpSettings* settings;
|
||||
};
|
||||
|
||||
static BOOL update_gdi_patblt(rdpContext* context, PATBLT_ORDER* patblt)
|
||||
{
|
||||
BYTE style;
|
||||
|
||||
Reference in New Issue
Block a user