#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "enhmfdrv/enhmetafiledrv.h"
#include "gdi_private.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (enhmetafile) |
|
static UINT | EMFDRV_AddHandle (PHYSDEV dev, HGDIOBJ obj) |
|
static UINT | EMFDRV_FindObject (PHYSDEV dev, HGDIOBJ obj) |
|
BOOL | EMFDRV_DeleteObject (PHYSDEV dev, HGDIOBJ obj) |
|
HBITMAP | EMFDRV_SelectBitmap (PHYSDEV dev, HBITMAP hbitmap) |
|
DWORD | EMFDRV_CreateBrushIndirect (PHYSDEV dev, HBRUSH hBrush) |
|
HBRUSH | EMFDRV_SelectBrush (PHYSDEV dev, HBRUSH hBrush, const struct brush_pattern *pattern) |
|
static BOOL | EMFDRV_CreateFontIndirect (PHYSDEV dev, HFONT hFont) |
|
HFONT | EMFDRV_SelectFont (PHYSDEV dev, HFONT hFont, UINT *aa_flags) |
|
static DWORD | EMFDRV_CreatePenIndirect (PHYSDEV dev, HPEN hPen) |
|
HPEN | EMFDRV_SelectPen (PHYSDEV dev, HPEN hPen, const struct brush_pattern *pattern) |
|
static DWORD | EMFDRV_CreatePalette (PHYSDEV dev, HPALETTE hPal) |
|
HPALETTE | EMFDRV_SelectPalette (PHYSDEV dev, HPALETTE hPal, BOOL force) |
|
COLORREF | EMFDRV_SetDCBrushColor (PHYSDEV dev, COLORREF color) |
|
COLORREF | EMFDRV_SetDCPenColor (PHYSDEV dev, COLORREF color) |
|
BOOL | EMFDRV_GdiComment (PHYSDEV dev, UINT bytes, const BYTE *buffer) |
|
◆ EMFDRV_AddHandle()
◆ EMFDRV_CreateBrushIndirect()
DWORD EMFDRV_CreateBrushIndirect |
( |
PHYSDEV |
dev, |
|
|
HBRUSH |
hBrush |
|
) |
| |
Definition at line 111 of file objects.c.
116 if (!
GetObjectA( hBrush,
sizeof(logbrush), &logbrush ))
return 0;
177 emr->
cbBmi = info_size;
int WINAPI GetObjectA(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
struct tagBITMAPINFOHEADER BITMAPINFOHEADER
static UINT EMFDRV_AddHandle(PHYSDEV dev, HGDIOBJ obj)
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
#define EMR_CREATEDIBPATTERNBRUSHPT
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define EMR_CREATEBRUSHINDIRECT
BOOL get_brush_bitmap_info(HBRUSH handle, BITMAPINFO *info, void *bits, UINT *usage) DECLSPEC_HIDDEN
GLsizeiptr const GLvoid GLenum usage
#define memcpy(s1, s2, n)
struct tagEMRCREATEDIBPATTERNBRUSHPT EMRCREATEDIBPATTERNBRUSHPT
#define FIELD_OFFSET(t, f)
static int get_dib_info_size(const BITMAPINFO *info, UINT coloruse)
#define HeapFree(x, y, z)
#define EMR_CREATEMONOBRUSH
struct tagBITMAPINFO BITMAPINFO
Referenced by EMFDRV_FillRgn(), EMFDRV_FrameRgn(), EMFDRV_SelectBrush(), and EMFDRV_SetDCBrushColor().
◆ EMFDRV_CreateFontIndirect()
Definition at line 244 of file objects.c.
253 emr.
emr.
nSize = (
sizeof(emr) + 3) / 4 * 4;
static UINT EMFDRV_AddHandle(PHYSDEV dev, HGDIOBJ obj)
#define PAN_CULTURE_LATIN
#define EMR_EXTCREATEFONTINDIRECTW
WCHAR elfFullName[LF_FULLFACESIZE]
WCHAR elfStyle[LF_FACESIZE]
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
BYTE elfVendorId[ELF_VENDOR_SIZE]
Referenced by EMFDRV_SelectFont().
◆ EMFDRV_CreatePalette()
static DWORD EMFDRV_CreatePalette |
( |
PHYSDEV |
dev, |
|
|
HPALETTE |
hPal |
|
) |
| |
|
static |
Definition at line 409 of file objects.c.
417 memset( &pal, 0,
sizeof(pal) );
419 if (!
GetObjectW( hPal,
sizeof(pal.hdr.lgpl) +
sizeof(pal.entry), &pal.hdr.lgpl ))
422 for (
i = 0;
i < pal.hdr.lgpl.palNumEntries;
i++)
423 pal.hdr.lgpl.palPalEntry[
i].peFlags = 0;
426 pal.hdr.emr.nSize =
sizeof(pal.hdr) + pal.hdr.lgpl.palNumEntries *
sizeof(
PALETTEENTRY);
431 return pal.hdr.ihPal;
static UINT EMFDRV_AddHandle(PHYSDEV dev, HGDIOBJ obj)
#define EMR_CREATEPALETTE
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct tagPALETTEENTRY PALETTEENTRY
Referenced by EMFDRV_SelectPalette().
◆ EMFDRV_CreatePenIndirect()
static DWORD EMFDRV_CreatePenIndirect |
( |
PHYSDEV |
dev, |
|
|
HPEN |
hPen |
|
) |
| |
|
static |
Definition at line 332 of file objects.c.
static UINT EMFDRV_AddHandle(PHYSDEV dev, HGDIOBJ obj)
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
#define HeapFree(x, y, z)
Referenced by EMFDRV_SelectPen(), and EMFDRV_SetDCPenColor().
◆ EMFDRV_DeleteObject()
Definition at line 77 of file objects.c.
static UINT EMFDRV_FindObject(PHYSDEV dev, HGDIOBJ obj)
◆ EMFDRV_FindObject()
◆ EMFDRV_GdiComment()
Definition at line 520 of file objects.c.
526 rounded_size = (
bytes+3) & ~3;
static unsigned char bytes[4]
#define offsetof(TYPE, MEMBER)
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define memcpy(s1, s2, n)
#define HeapFree(x, y, z)
◆ EMFDRV_SelectBitmap()
◆ EMFDRV_SelectBrush()
Definition at line 205 of file objects.c.
HGDIOBJ WINAPI GetStockObject(_In_ int)
DWORD EMFDRV_CreateBrushIndirect(PHYSDEV dev, HBRUSH hBrush)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static UINT EMFDRV_FindObject(PHYSDEV dev, HGDIOBJ obj)
void GDI_hdc_using_object(HGDIOBJ obj, HDC hdc) DECLSPEC_HIDDEN
◆ EMFDRV_SelectFont()
Definition at line 284 of file objects.c.
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define GET_NEXT_PHYSDEV(dev, func)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static UINT EMFDRV_FindObject(PHYSDEV dev, HGDIOBJ obj)
void GDI_hdc_using_object(HGDIOBJ obj, HDC hdc) DECLSPEC_HIDDEN
static BOOL EMFDRV_CreateFontIndirect(PHYSDEV dev, HFONT hFont)
◆ EMFDRV_SelectPalette()
HPALETTE EMFDRV_SelectPalette |
( |
PHYSDEV |
dev, |
|
|
HPALETTE |
hPal, |
|
|
BOOL |
force |
|
) |
| |
Definition at line 437 of file objects.c.
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define EMR_SELECTPALETTE
static DWORD EMFDRV_CreatePalette(PHYSDEV dev, HPALETTE hPal)
static UINT EMFDRV_FindObject(PHYSDEV dev, HGDIOBJ obj)
void GDI_hdc_using_object(HGDIOBJ obj, HDC hdc) DECLSPEC_HIDDEN
◆ EMFDRV_SelectPen()
Definition at line 369 of file objects.c.
HGDIOBJ WINAPI GetStockObject(_In_ int)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static UINT EMFDRV_FindObject(PHYSDEV dev, HGDIOBJ obj)
void GDI_hdc_using_object(HGDIOBJ obj, HDC hdc) DECLSPEC_HIDDEN
static DWORD EMFDRV_CreatePenIndirect(PHYSDEV dev, HPEN hPen)
◆ EMFDRV_SetDCBrushColor()
Definition at line 467 of file objects.c.
471 DC *
dc = get_physdev_dc(
dev );
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
DWORD EMFDRV_CreateBrushIndirect(PHYSDEV dev, HBRUSH hBrush)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
void GDI_hdc_using_object(HGDIOBJ obj, HDC hdc) DECLSPEC_HIDDEN
HGDIOBJ WINAPI GetCurrentObject(_In_ HDC, _In_ UINT)
◆ EMFDRV_SetDCPenColor()
Definition at line 493 of file objects.c.
497 DC *
dc = get_physdev_dc(
dev );
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
HPEN WINAPI CreatePenIndirect(_In_ const LOGPEN *)
void GDI_hdc_using_object(HGDIOBJ obj, HDC hdc) DECLSPEC_HIDDEN
static DWORD EMFDRV_CreatePenIndirect(PHYSDEV dev, HPEN hPen)
HGDIOBJ WINAPI GetCurrentObject(_In_ HDC, _In_ UINT)
◆ WINE_DEFAULT_DEBUG_CHANNEL()