116 if (!
GetObjectA( hBrush,
sizeof(logbrush), &logbrush ))
return 0;
177 emr->
cbBmi = info_size;
253 emr.
emr.
nSize = (
sizeof(emr) + 3) / 4 * 4;
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;
526 rounded_size = (
bytes+3) & ~3;
HGDIOBJ WINAPI GetStockObject(_In_ int)
int WINAPI GetObjectA(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
COLORREF EMFDRV_SetDCBrushColor(PHYSDEV dev, COLORREF color)
struct tagBITMAPINFOHEADER BITMAPINFOHEADER
static UINT EMFDRV_AddHandle(PHYSDEV dev, HGDIOBJ obj)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
#define PAN_CULTURE_LATIN
BOOL get_brush_bitmap_info(HBRUSH handle, BITMAPINFO *info, void **bits, UINT *usage) DECLSPEC_HIDDEN
#define EMR_CREATEPALETTE
#define EMR_EXTCREATEFONTINDIRECTW
#define EMR_SELECTPALETTE
HBRUSH EMFDRV_SelectBrush(PHYSDEV dev, HBRUSH hBrush, const struct brush_pattern *pattern)
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
HGDIOBJ get_full_gdi_handle(HGDIOBJ handle) DECLSPEC_HIDDEN
#define GET_NEXT_PHYSDEV(dev, func)
static unsigned char bytes[4]
BOOL EMFDRV_DeleteObject(PHYSDEV dev, HGDIOBJ obj)
#define offsetof(TYPE, MEMBER)
WCHAR elfFullName[LF_FULLFACESIZE]
BOOL EMFDRV_GdiComment(PHYSDEV dev, UINT bytes, const BYTE *buffer)
#define EMR_CREATEDIBPATTERNBRUSHPT
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
static DWORD EMFDRV_CreatePalette(PHYSDEV dev, HPALETTE hPal)
HPALETTE EMFDRV_SelectPalette(PHYSDEV dev, HPALETTE hPal, BOOL force)
HBITMAP EMFDRV_SelectBitmap(PHYSDEV dev, HBITMAP hbitmap)
#define EMR_CREATEBRUSHINDIRECT
static const unsigned char enhmetafile[]
HFONT EMFDRV_SelectFont(PHYSDEV dev, HFONT hFont, UINT *aa_flags)
GLsizeiptr const GLvoid GLenum usage
WCHAR elfStyle[LF_FACESIZE]
#define memcpy(s1, s2, n)
HPEN WINAPI CreatePenIndirect(_In_ const LOGPEN *)
WINE_DEFAULT_DEBUG_CHANNEL(enhmetafile)
DWORD EMFDRV_CreateBrushIndirect(PHYSDEV dev, HBRUSH hBrush)
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
struct tagEMRCREATEDIBPATTERNBRUSHPT EMRCREATEDIBPATTERNBRUSHPT
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
WINEDC * get_physdev_dc(PHYSDEV dev)
#define FIELD_OFFSET(t, f)
HPEN EMFDRV_SelectPen(PHYSDEV dev, HPEN hPen, const struct brush_pattern *pattern)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
static UINT EMFDRV_FindObject(PHYSDEV dev, HGDIOBJ obj)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
void GDI_hdc_using_object(HGDIOBJ obj, HDC hdc) DECLSPEC_HIDDEN
COLORREF EMFDRV_SetDCPenColor(PHYSDEV dev, COLORREF color)
static int get_dib_info_size(const BITMAPINFO *info, UINT coloruse)
static BOOL EMFDRV_CreateFontIndirect(PHYSDEV dev, HFONT hFont)
struct tagPALETTEENTRY PALETTEENTRY
static DWORD EMFDRV_CreatePenIndirect(PHYSDEV dev, HPEN hPen)
#define HeapFree(x, y, z)
HGDIOBJ WINAPI GetCurrentObject(_In_ HDC, _In_ UINT)
#define EMR_CREATEMONOBRUSH
BYTE elfVendorId[ELF_VENDOR_SIZE]
struct tagBITMAPINFO BITMAPINFO