fix implicit fallthrough
This commit is contained in:
parent
39fe98c900
commit
3220c5f1b1
@ -1259,6 +1259,7 @@ int Picture::button_action(int newX, int newY)
|
|||||||
addCode(clickX>>1);
|
addCode(clickX>>1);
|
||||||
addCode(clickY);
|
addCode(clickY);
|
||||||
ret=1;
|
ret=1;
|
||||||
|
[[fallthrough]];
|
||||||
default:
|
default:
|
||||||
addCode(newX>>1);
|
addCode(newX>>1);
|
||||||
addCode(newY);
|
addCode(newY);
|
||||||
@ -1284,6 +1285,7 @@ int Picture::button_action(int newX, int newY)
|
|||||||
addCode(0xF7);
|
addCode(0xF7);
|
||||||
addCode(clickX>>1);
|
addCode(clickX>>1);
|
||||||
addCode(clickY);
|
addCode(clickY);
|
||||||
|
[[fallthrough]];
|
||||||
default:
|
default:
|
||||||
if (dX < 0) disp = (0x80 | ((((-1)*dX)-0) << 4));
|
if (dX < 0) disp = (0x80 | ((((-1)*dX)-0) << 4));
|
||||||
else disp = (dX << 4);
|
else disp = (dX << 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user