1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

Calculator: Fix which digits get animated when pressing keyboard keys

Previously every digit press would appear like "0" was pressed on the
keypad.
This commit is contained in:
Karol Baraniecki 2022-12-26 17:07:00 +01:00 committed by Andreas Kling
parent c65df44eee
commit ef9fd6c286
3 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@
#include <LibCrypto/BigInt/UnsignedBigInteger.h>
#include <LibCrypto/NumberTheory/ModularFunctions.h>
unsigned Keypad::type_digit(int digit)
void Keypad::type_digit(int digit)
{
switch (m_state) {
case State::External:
@ -34,7 +34,6 @@ unsigned Keypad::type_digit(int digit)
m_frac_length.set_to(m_frac_length.plus(1));
break;
}
return m_frac_length.to_u64();
}
void Keypad::type_decimal_point()