mirror of https://github.com/mgba-emu/mgba.git
software renderer: Silence -Wlogical-not-parentheses warnings
This commit is contained in:
parent
865f511f52
commit
5d6802d413
|
@ -89,7 +89,7 @@ void GBAVideoSoftwareRendererDrawBackgroundMode3(struct GBAVideoSoftwareRenderer
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t current = *pixel;
|
uint32_t current = *pixel;
|
||||||
if (!objwinSlowPath || !(current & FLAG_OBJWIN) != objwinOnly) {
|
if (!objwinSlowPath || (!(current & FLAG_OBJWIN)) != objwinOnly) {
|
||||||
unsigned mergedFlags = flags;
|
unsigned mergedFlags = flags;
|
||||||
if (current & FLAG_OBJWIN) {
|
if (current & FLAG_OBJWIN) {
|
||||||
mergedFlags = objwinFlags;
|
mergedFlags = objwinFlags;
|
||||||
|
@ -131,7 +131,7 @@ void GBAVideoSoftwareRendererDrawBackgroundMode4(struct GBAVideoSoftwareRenderer
|
||||||
if (color && IS_WRITABLE(current)) {
|
if (color && IS_WRITABLE(current)) {
|
||||||
if (!objwinSlowPath) {
|
if (!objwinSlowPath) {
|
||||||
_compositeBlendNoObjwin(renderer, pixel, palette[color] | flags, current);
|
_compositeBlendNoObjwin(renderer, pixel, palette[color] | flags, current);
|
||||||
} else if (objwinForceEnable || !(current & FLAG_OBJWIN) == objwinOnly) {
|
} else if (objwinForceEnable || (!(current & FLAG_OBJWIN)) == objwinOnly) {
|
||||||
color_t* currentPalette = (current & FLAG_OBJWIN) ? objwinPalette : palette;
|
color_t* currentPalette = (current & FLAG_OBJWIN) ? objwinPalette : palette;
|
||||||
unsigned mergedFlags = flags;
|
unsigned mergedFlags = flags;
|
||||||
if (current & FLAG_OBJWIN) {
|
if (current & FLAG_OBJWIN) {
|
||||||
|
@ -178,7 +178,7 @@ void GBAVideoSoftwareRendererDrawBackgroundMode5(struct GBAVideoSoftwareRenderer
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t current = *pixel;
|
uint32_t current = *pixel;
|
||||||
if (!objwinSlowPath || !(current & FLAG_OBJWIN) != objwinOnly) {
|
if (!objwinSlowPath || (!(current & FLAG_OBJWIN)) != objwinOnly) {
|
||||||
unsigned mergedFlags = flags;
|
unsigned mergedFlags = flags;
|
||||||
if (current & FLAG_OBJWIN) {
|
if (current & FLAG_OBJWIN) {
|
||||||
mergedFlags = objwinFlags;
|
mergedFlags = objwinFlags;
|
||||||
|
|
|
@ -84,7 +84,7 @@ static inline void _compositeNoBlendNoObjwin(struct GBAVideoSoftwareRenderer* re
|
||||||
}
|
}
|
||||||
|
|
||||||
#define COMPOSITE_16_OBJWIN(BLEND) \
|
#define COMPOSITE_16_OBJWIN(BLEND) \
|
||||||
if (objwinForceEnable || !(current & FLAG_OBJWIN) == objwinOnly) { \
|
if (objwinForceEnable || (!(current & FLAG_OBJWIN)) == objwinOnly) { \
|
||||||
unsigned color = (current & FLAG_OBJWIN) ? objwinPalette[paletteData | pixelData] : palette[pixelData]; \
|
unsigned color = (current & FLAG_OBJWIN) ? objwinPalette[paletteData | pixelData] : palette[pixelData]; \
|
||||||
unsigned mergedFlags = flags; \
|
unsigned mergedFlags = flags; \
|
||||||
if (current & FLAG_OBJWIN) { \
|
if (current & FLAG_OBJWIN) { \
|
||||||
|
@ -97,7 +97,7 @@ static inline void _compositeNoBlendNoObjwin(struct GBAVideoSoftwareRenderer* re
|
||||||
_composite ## BLEND ## NoObjwin(renderer, pixel, palette[pixelData] | flags, current);
|
_composite ## BLEND ## NoObjwin(renderer, pixel, palette[pixelData] | flags, current);
|
||||||
|
|
||||||
#define COMPOSITE_256_OBJWIN(BLEND) \
|
#define COMPOSITE_256_OBJWIN(BLEND) \
|
||||||
if (objwinForceEnable || !(current & FLAG_OBJWIN) == objwinOnly) { \
|
if (objwinForceEnable || (!(current & FLAG_OBJWIN)) == objwinOnly) { \
|
||||||
unsigned color = (current & FLAG_OBJWIN) ? objwinPalette[pixelData] : palette[pixelData]; \
|
unsigned color = (current & FLAG_OBJWIN) ? objwinPalette[pixelData] : palette[pixelData]; \
|
||||||
unsigned mergedFlags = flags; \
|
unsigned mergedFlags = flags; \
|
||||||
if (current & FLAG_OBJWIN) { \
|
if (current & FLAG_OBJWIN) { \
|
||||||
|
|
Loading…
Reference in New Issue