mirror of https://github.com/snes9xgit/snes9x.git
Silence -Wimplicit-fallthrough with comments.
This commit is contained in:
parent
42cda57ff9
commit
d441856303
56
tile.cpp
56
tile.cpp
|
@ -858,13 +858,13 @@ void S9xSelectTileConverter (int depth, bool8 hires, bool8 sub, bool8 mosaic)
|
||||||
w = Width; \
|
w = Width; \
|
||||||
switch (StartPixel) \
|
switch (StartPixel) \
|
||||||
{ \
|
{ \
|
||||||
case 0: DRAW_PIXEL(0, Pix = bp[0]); if (!--w) break; \
|
case 0: DRAW_PIXEL(0, Pix = bp[0]); if (!--w) break; /* Fall through */ \
|
||||||
case 1: DRAW_PIXEL(1, Pix = bp[1]); if (!--w) break; \
|
case 1: DRAW_PIXEL(1, Pix = bp[1]); if (!--w) break; /* Fall through */ \
|
||||||
case 2: DRAW_PIXEL(2, Pix = bp[2]); if (!--w) break; \
|
case 2: DRAW_PIXEL(2, Pix = bp[2]); if (!--w) break; /* Fall through */ \
|
||||||
case 3: DRAW_PIXEL(3, Pix = bp[3]); if (!--w) break; \
|
case 3: DRAW_PIXEL(3, Pix = bp[3]); if (!--w) break; /* Fall through */ \
|
||||||
case 4: DRAW_PIXEL(4, Pix = bp[4]); if (!--w) break; \
|
case 4: DRAW_PIXEL(4, Pix = bp[4]); if (!--w) break; /* Fall through */ \
|
||||||
case 5: DRAW_PIXEL(5, Pix = bp[5]); if (!--w) break; \
|
case 5: DRAW_PIXEL(5, Pix = bp[5]); if (!--w) break; /* Fall through */ \
|
||||||
case 6: DRAW_PIXEL(6, Pix = bp[6]); if (!--w) break; \
|
case 6: DRAW_PIXEL(6, Pix = bp[6]); if (!--w) break; /* Fall through */ \
|
||||||
case 7: DRAW_PIXEL(7, Pix = bp[7]); break; \
|
case 7: DRAW_PIXEL(7, Pix = bp[7]); break; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
@ -878,13 +878,13 @@ void S9xSelectTileConverter (int depth, bool8 hires, bool8 sub, bool8 mosaic)
|
||||||
w = Width; \
|
w = Width; \
|
||||||
switch (StartPixel) \
|
switch (StartPixel) \
|
||||||
{ \
|
{ \
|
||||||
case 0: DRAW_PIXEL(0, Pix = bp[7]); if (!--w) break; \
|
case 0: DRAW_PIXEL(0, Pix = bp[7]); if (!--w) break; /* Fall through */ \
|
||||||
case 1: DRAW_PIXEL(1, Pix = bp[6]); if (!--w) break; \
|
case 1: DRAW_PIXEL(1, Pix = bp[6]); if (!--w) break; /* Fall through */ \
|
||||||
case 2: DRAW_PIXEL(2, Pix = bp[5]); if (!--w) break; \
|
case 2: DRAW_PIXEL(2, Pix = bp[5]); if (!--w) break; /* Fall through */ \
|
||||||
case 3: DRAW_PIXEL(3, Pix = bp[4]); if (!--w) break; \
|
case 3: DRAW_PIXEL(3, Pix = bp[4]); if (!--w) break; /* Fall through */ \
|
||||||
case 4: DRAW_PIXEL(4, Pix = bp[3]); if (!--w) break; \
|
case 4: DRAW_PIXEL(4, Pix = bp[3]); if (!--w) break; /* Fall through */ \
|
||||||
case 5: DRAW_PIXEL(5, Pix = bp[2]); if (!--w) break; \
|
case 5: DRAW_PIXEL(5, Pix = bp[2]); if (!--w) break; /* Fall through */ \
|
||||||
case 6: DRAW_PIXEL(6, Pix = bp[1]); if (!--w) break; \
|
case 6: DRAW_PIXEL(6, Pix = bp[1]); if (!--w) break; /* Fall through */ \
|
||||||
case 7: DRAW_PIXEL(7, Pix = bp[0]); break; \
|
case 7: DRAW_PIXEL(7, Pix = bp[0]); break; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
@ -898,13 +898,13 @@ void S9xSelectTileConverter (int depth, bool8 hires, bool8 sub, bool8 mosaic)
|
||||||
w = Width; \
|
w = Width; \
|
||||||
switch (StartPixel) \
|
switch (StartPixel) \
|
||||||
{ \
|
{ \
|
||||||
case 0: DRAW_PIXEL(0, Pix = bp[0]); if (!--w) break; \
|
case 0: DRAW_PIXEL(0, Pix = bp[0]); if (!--w) break; /* Fall through */ \
|
||||||
case 1: DRAW_PIXEL(1, Pix = bp[1]); if (!--w) break; \
|
case 1: DRAW_PIXEL(1, Pix = bp[1]); if (!--w) break; /* Fall through */ \
|
||||||
case 2: DRAW_PIXEL(2, Pix = bp[2]); if (!--w) break; \
|
case 2: DRAW_PIXEL(2, Pix = bp[2]); if (!--w) break; /* Fall through */ \
|
||||||
case 3: DRAW_PIXEL(3, Pix = bp[3]); if (!--w) break; \
|
case 3: DRAW_PIXEL(3, Pix = bp[3]); if (!--w) break; /* Fall through */ \
|
||||||
case 4: DRAW_PIXEL(4, Pix = bp[4]); if (!--w) break; \
|
case 4: DRAW_PIXEL(4, Pix = bp[4]); if (!--w) break; /* Fall through */ \
|
||||||
case 5: DRAW_PIXEL(5, Pix = bp[5]); if (!--w) break; \
|
case 5: DRAW_PIXEL(5, Pix = bp[5]); if (!--w) break; /* Fall through */ \
|
||||||
case 6: DRAW_PIXEL(6, Pix = bp[6]); if (!--w) break; \
|
case 6: DRAW_PIXEL(6, Pix = bp[6]); if (!--w) break; /* Fall through */ \
|
||||||
case 7: DRAW_PIXEL(7, Pix = bp[7]); break; \
|
case 7: DRAW_PIXEL(7, Pix = bp[7]); break; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
@ -917,13 +917,13 @@ void S9xSelectTileConverter (int depth, bool8 hires, bool8 sub, bool8 mosaic)
|
||||||
w = Width; \
|
w = Width; \
|
||||||
switch (StartPixel) \
|
switch (StartPixel) \
|
||||||
{ \
|
{ \
|
||||||
case 0: DRAW_PIXEL(0, Pix = bp[7]); if (!--w) break; \
|
case 0: DRAW_PIXEL(0, Pix = bp[7]); if (!--w) break; /* Fall through */ \
|
||||||
case 1: DRAW_PIXEL(1, Pix = bp[6]); if (!--w) break; \
|
case 1: DRAW_PIXEL(1, Pix = bp[6]); if (!--w) break; /* Fall through */ \
|
||||||
case 2: DRAW_PIXEL(2, Pix = bp[5]); if (!--w) break; \
|
case 2: DRAW_PIXEL(2, Pix = bp[5]); if (!--w) break; /* Fall through */ \
|
||||||
case 3: DRAW_PIXEL(3, Pix = bp[4]); if (!--w) break; \
|
case 3: DRAW_PIXEL(3, Pix = bp[4]); if (!--w) break; /* Fall through */ \
|
||||||
case 4: DRAW_PIXEL(4, Pix = bp[3]); if (!--w) break; \
|
case 4: DRAW_PIXEL(4, Pix = bp[3]); if (!--w) break; /* Fall through */ \
|
||||||
case 5: DRAW_PIXEL(5, Pix = bp[2]); if (!--w) break; \
|
case 5: DRAW_PIXEL(5, Pix = bp[2]); if (!--w) break; /* Fall through */ \
|
||||||
case 6: DRAW_PIXEL(6, Pix = bp[1]); if (!--w) break; \
|
case 6: DRAW_PIXEL(6, Pix = bp[1]); if (!--w) break; /* Fall through */ \
|
||||||
case 7: DRAW_PIXEL(7, Pix = bp[0]); break; \
|
case 7: DRAW_PIXEL(7, Pix = bp[0]); break; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in New Issue