mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-11 09:02:36 +00:00
Fixed warning C4706: assignment within conditional expression
This commit is contained in:
@@ -1342,7 +1342,7 @@ pen_movementAndAxes(void *arg)
|
|||||||
|
|
||||||
_pen_simulate_init(&ptest, simulated_pens, 2);
|
_pen_simulate_init(&ptest, simulated_pens, 2);
|
||||||
/* Simulate pen movements */
|
/* Simulate pen movements */
|
||||||
while ((last_action = _pen_simulate(steps, &sim_pc, &simulated_pens[0], 2))) {
|
while ((last_action = _pen_simulate(steps, &sim_pc, &simulated_pens[0], 2)) != 0) {
|
||||||
int attempts = 0;
|
int attempts = 0;
|
||||||
SDL_Pen *simpen = &simulated_pens[last_action->pen_index];
|
SDL_Pen *simpen = &simulated_pens[last_action->pen_index];
|
||||||
SDL_PenID reported_which = 0;
|
SDL_PenID reported_which = 0;
|
||||||
|
|||||||
@@ -501,7 +501,7 @@ static void _Redraw(int rendererID)
|
|||||||
drawnTextRect.y = dstrect.y;
|
drawnTextRect.y = dstrect.y;
|
||||||
drawnTextRect.h = dstrect.h;
|
drawnTextRect.h = dstrect.h;
|
||||||
|
|
||||||
while ((codepoint = utf8_decode(utext, len = utf8_length(*utext)))) {
|
while ((codepoint = utf8_decode(utext, len = utf8_length(*utext))) != 0) {
|
||||||
Sint32 advance = unifont_draw_glyph(codepoint, rendererID, &dstrect) * UNIFONT_DRAW_SCALE;
|
Sint32 advance = unifont_draw_glyph(codepoint, rendererID, &dstrect) * UNIFONT_DRAW_SCALE;
|
||||||
dstrect.x += advance;
|
dstrect.x += advance;
|
||||||
drawnTextRect.w += advance;
|
drawnTextRect.w += advance;
|
||||||
@@ -573,7 +573,7 @@ static void _Redraw(int rendererID)
|
|||||||
drawnTextRect.y = dstrect.y;
|
drawnTextRect.y = dstrect.y;
|
||||||
drawnTextRect.h = dstrect.h;
|
drawnTextRect.h = dstrect.h;
|
||||||
|
|
||||||
while ((codepoint = utf8_decode(utext, len = utf8_length(*utext)))) {
|
while ((codepoint = utf8_decode(utext, len = utf8_length(*utext))) != 0) {
|
||||||
Sint32 advance = unifont_draw_glyph(codepoint, rendererID, &dstrect) * UNIFONT_DRAW_SCALE;
|
Sint32 advance = unifont_draw_glyph(codepoint, rendererID, &dstrect) * UNIFONT_DRAW_SCALE;
|
||||||
dstrect.x += advance;
|
dstrect.x += advance;
|
||||||
drawnTextRect.w += advance;
|
drawnTextRect.w += advance;
|
||||||
|
|||||||
Reference in New Issue
Block a user