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(clickY);
|
||||
ret=1;
|
||||
[[fallthrough]];
|
||||
default:
|
||||
addCode(newX>>1);
|
||||
addCode(newY);
|
||||
@ -1284,6 +1285,7 @@ int Picture::button_action(int newX, int newY)
|
||||
addCode(0xF7);
|
||||
addCode(clickX>>1);
|
||||
addCode(clickY);
|
||||
[[fallthrough]];
|
||||
default:
|
||||
if (dX < 0) disp = (0x80 | ((((-1)*dX)-0) << 4));
|
||||
else disp = (dX << 4);
|
||||
|
Loading…
Reference in New Issue
Block a user