31 TRACE(
"%p increasing refcount to %u.\n",
palette, refcount);
45 TRACE(
"%p decreasing refcount to %u.\n",
palette, refcount);
57 TRACE(
"palette %p, flags %#x, start %u, count %u, entries %p.\n",
93 ERR(
"Failed to set DIB color table. (Only printing once)\n");
96 ERR(
"Failed to set DIB color table.\n");
105 TRACE(
"palette %p, flags %#x, start %u, count %u, entries %p.\n",
129 TRACE(
"WINED3D_PALETTE_ALLOW_256 not set, overriding palette entry 0 with black and 255 with white.\n");
131 palette->colors[0].rgbGreen = 0;
132 palette->colors[0].rgbBlue = 0;
134 palette->colors[255].rgbRed = 255;
135 palette->colors[255].rgbGreen = 255;
136 palette->colors[255].rgbBlue = 255;
155 WARN(
"Failed to set palette entries, hr %#x.\n",
hr);
168 TRACE(
"device %p, flags %#x, entry_count %u, entries %p, palette %p.\n",
171 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
176 WARN(
"Failed to initialize palette, hr %#x.\n",
hr);
181 TRACE(
"Created palette %p.\n",
object);
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
void wined3d_cs_destroy_object(struct wined3d_cs *cs, void(*callback)(void *object), void *object)
static void wined3d_palette_destroy_object(void *object)
static HRESULT wined3d_palette_init(struct wined3d_palette *palette, struct wined3d_device *device, DWORD flags, unsigned int entry_count, const PALETTEENTRY *entries)
ULONG CDECL wined3d_palette_incref(struct wined3d_palette *palette)
HRESULT CDECL wined3d_palette_set_entries(struct wined3d_palette *palette, DWORD flags, DWORD start, DWORD count, const PALETTEENTRY *entries)
ULONG CDECL wined3d_palette_decref(struct wined3d_palette *palette)
void CDECL wined3d_palette_apply_to_dc(const struct wined3d_palette *palette, HDC dc)
HRESULT CDECL wined3d_palette_get_entries(const struct wined3d_palette *palette, DWORD flags, DWORD start, DWORD count, PALETTEENTRY *entries)
HRESULT CDECL wined3d_palette_create(struct wined3d_device *device, DWORD flags, unsigned int entry_count, const PALETTEENTRY *entries, struct wined3d_palette **palette)
GLuint GLuint GLsizei count
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
#define WINED3D_PALETTE_8BIT_ENTRIES
#define WINED3D_PALETTE_ALLOW_256
#define WINED3DERR_INVALIDCALL
UINT WINAPI SetDIBColorTable(_In_ HDC hdc, _In_ UINT iStart, _In_ UINT cEntries, _In_reads_(cEntries) const RGBQUAD *prgbq)