wined3d: Avoid TRUE-FALSE conditional expressions.
This commit is contained in:
parent
f631780da4
commit
4ddfcc2cf1
|
@ -6999,7 +6999,7 @@ static void upload_palette(const struct wined3d_surface *surface, struct wined3d
|
|||
struct wined3d_device *device = surface->resource.device;
|
||||
const struct wined3d_gl_info *gl_info = &device->adapter->gl_info;
|
||||
struct arbfp_blit_priv *priv = device->blit_priv;
|
||||
BOOL colorkey = (surface->CKeyFlags & WINEDDSD_CKSRCBLT) ? TRUE : FALSE;
|
||||
BOOL colorkey = (surface->CKeyFlags & WINEDDSD_CKSRCBLT) != 0;
|
||||
|
||||
d3dfmt_p8_init_palette(surface, table, colorkey);
|
||||
|
||||
|
|
|
@ -4146,7 +4146,7 @@ void surface_internal_preload(struct wined3d_surface *surface, enum WINED3DSRGB
|
|||
/* TODO: Use already acquired context when possible. */
|
||||
context = context_acquire(device, NULL);
|
||||
|
||||
surface_load(surface, srgb == SRGB_SRGB ? TRUE : FALSE);
|
||||
surface_load(surface, srgb == SRGB_SRGB);
|
||||
|
||||
if (surface->resource.pool == WINED3D_POOL_DEFAULT)
|
||||
{
|
||||
|
@ -6352,7 +6352,7 @@ static void ffp_blit_free(struct wined3d_device *device) { }
|
|||
static void ffp_blit_p8_upload_palette(const struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info)
|
||||
{
|
||||
BYTE table[256][4];
|
||||
BOOL colorkey_active = (surface->CKeyFlags & WINEDDSD_CKSRCBLT) ? TRUE : FALSE;
|
||||
BOOL colorkey_active = (surface->CKeyFlags & WINEDDSD_CKSRCBLT) != 0;
|
||||
GLenum target;
|
||||
|
||||
if (surface->container.type == WINED3D_CONTAINER_TEXTURE)
|
||||
|
|
Loading…
Reference in New Issue