fix implicit fallthrough

This commit is contained in:
Chris Cromer 2019-05-01 18:20:02 -04:00
parent 39fe98c900
commit 3220c5f1b1
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
1 changed files with 2 additions and 0 deletions

View File

@ -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);