30 TRACE(
"%p increasing refcount to %u.\n",
palette, refcount);
37 TRACE(
"object %p.\n",
object);
46 TRACE(
"%p decreasing refcount to %u.\n",
palette, refcount);
62 TRACE(
"palette %p, flags %#x, start %u, count %u, entries %p.\n",
94 ERR(
"Failed to set DIB color table.\n");
102 TRACE(
"palette %p, flags %#x, start %u, count %u, entries %p.\n",
128 TRACE(
"WINED3D_PALETTE_ALLOW_256 not set, overriding palette entry 0 with black and 255 with white.\n");
130 palette->colors[0].rgbGreen = 0;
131 palette->colors[0].rgbBlue = 0;
133 palette->colors[255].rgbRed = 255;
134 palette->colors[255].rgbGreen = 255;
135 palette->colors[255].rgbBlue = 255;
154 WARN(
"Failed to set palette entries, hr %#lx.\n",
hr);
167 TRACE(
"device %p, flags %#x, entry_count %u, entries %p, palette %p.\n",
170 if (!(
object =
calloc(1,
sizeof(*
object))))
175 WARN(
"Failed to initialize palette, hr %#lx.\n",
hr);
180 TRACE(
"Created palette %p.\n",
object);
#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)
HRESULT CDECL wined3d_palette_create(struct wined3d_device *device, uint32_t flags, unsigned int entry_count, const PALETTEENTRY *entries, struct wined3d_palette **palette)
static void wined3d_palette_destroy_object(void *object)
HRESULT CDECL wined3d_palette_get_entries(const struct wined3d_palette *palette, uint32_t flags, unsigned int start, unsigned int count, PALETTEENTRY *entries)
ULONG CDECL wined3d_palette_incref(struct wined3d_palette *palette)
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_set_entries(struct wined3d_palette *palette, uint32_t flags, unsigned int start, unsigned int count, const PALETTEENTRY *entries)
static HRESULT wined3d_palette_init(struct wined3d_palette *palette, struct wined3d_device *device, uint32_t flags, unsigned int entry_count, const PALETTEENTRY *entries)
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
static bool wined3d_bound_range(unsigned int start, unsigned int count, unsigned int limit)
#define WINED3D_PALETTE_ALLOW_256
#define WINED3DERR_INVALIDCALL
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)
static void wined3d_cs_finish(struct wined3d_cs *cs, enum wined3d_cs_queue_id queue_id)
@ WINED3D_CS_QUEUE_DEFAULT
UINT WINAPI SetDIBColorTable(_In_ HDC hdc, _In_ UINT iStart, _In_ UINT cEntries, _In_reads_(cEntries) const RGBQUAD *prgbq)