summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Twos.cpp
AgeCommit message (Collapse)AuthorFilesLines
2022-09-11Reduce duplication in Twos (#1274)Riku Isokoski1-46/+25
2022-07-06Twos code cleanup (#1220)Riku Isokoski1-103/+105
2022-05-08Force full screen refresh with a rounder functionRiku Isokoski1-6/+0
When the screen switches, the full screen needs to be refreshed for the hardware scrolling to work. This was enforced with backgroundLabels, but is simpler to do with a rounder function.
2022-04-18Replace lv_label_set_text where possibleRiku Isokoski1-1/+1
2022-03-13Twos: fix warning about extra paranthesisReinhold Gschweicher1-1/+1
We have a comparison like `if (( a == b ))`, which is a parenthesis too much, which generates the following warning ``` InfiniTime/src/displayapp/screens/Twos.cpp:133:35: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((grid[newRow][newCol].value == grid[oldRow][oldCol].value)) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ InfiniTime/src/displayapp/screens/Twos.cpp:133:35: note: remove extraneous parentheses around the comparison to silence this warning if ((grid[newRow][newCol].value == grid[oldRow][oldCol].value)) { ~ ^ ~ ```
2021-12-09Improved format specifiers, bracing, removed C-style casts, whitespace fixes ↵Avamander1-3/+3
and removed Tiles shadowing
2021-11-15Update includes to to be relative to src directoryReinhold Gschweicher1-1/+1
Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
2021-10-29Memory savings by replacing stringsRiku Isokoski1-5/+7
2021-07-19Refresh reworkRiku Isokoski1-5/+1
2021-04-24Reformatted all the files according to clang-format styleAvamander1-66/+71
2021-04-16fix style formatting in 2048 gamepetter1-2/+7
2021-04-08restore battery bufferJoaquim1-2/+1
2021-04-04Big UI and navigation RewriteJoaquim1-5/+0
new navigation add some color to the apps redesign menus new settings menu new quick settings code clean up size reduction by converting navigation images to font and more...
2021-01-28LVGL v7.10.0Joaquim1-37/+60
2021-01-02adds 2048 clone gameJed1-0/+271
styles table reads touch events allows moving tiles allows merging tiles improves tile movement allows merging tiles adds score display implements color edit comments adjust game logic disallows double merges