GRAPHICS: Fix compiler warnings.
This commit is contained in:
parent
9d3eb2ebd7
commit
50c9aa1bc1
1 changed files with 2 additions and 2 deletions
|
@ -285,7 +285,7 @@ precalcGradient(int h) {
|
|||
template<typename PixelType>
|
||||
void VectorRendererSpec<PixelType>::
|
||||
gradientFill(PixelType *ptr, int width, int x, int y) {
|
||||
bool ox = (y & 1 == 1);
|
||||
bool ox = ((y & 1) == 1);
|
||||
int stripSize;
|
||||
int curGrad = 0;
|
||||
|
||||
|
@ -310,7 +310,7 @@ gradientFill(PixelType *ptr, int width, int x, int y) {
|
|||
colorFill<PixelType>(ptr, ptr + width, _gradCache[curGrad + 1]);
|
||||
} else {
|
||||
for (int j = x; j < x + width; j++, ptr++) {
|
||||
bool oy = (j & 1 == 1);
|
||||
bool oy = ((j & 1) == 1);
|
||||
|
||||
if ((ox && oy) ||
|
||||
((grad == 2 || grad == 3) && ox && !oy) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue