The usage of GIF_BG drop a bunch of errors when compiling.
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/games/snake_game.cpp: In member function 'virtual void OswAppSnakeGame::setup()':
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/games/snake_game.cpp:13:5: error: 'bgGif' was not declared in this scope
13 | bgGif->setup(hal);
| ^~~~~
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/games/snake_game.cpp:13:18: error: 'hal' was not declared in this scope
13 | bgGif->setup(hal);
| ^~~
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/games/snake_game.cpp: In member function 'virtual void OswAppSnakeGame::stop()':
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/games/snake_game.cpp:25:5: error: 'bgGif' was not declared in this scope
25 | bgGif->stop();
| ^~~~~
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/games/brick_breaker.cpp: In member function 'virtual void OswAppBrickBreaker::stop()':
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/games/brick_breaker.cpp:20:5: error: 'bgGif' was not declared in this scope
20 | bgGif->stop(hal);
| ^~~~~
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/games/brick_breaker.cpp:20:17: error: 'hal' was not declared in this scope
20 | bgGif->stop(hal);
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/watchfaces/OswAppWatchface.cpp: In member function 'virtual void OswAppWatchface::onStart()':
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/watchfaces/OswAppWatchface.cpp:131:17: error: no matching function for call to 'OswAppGifPlayer::setup(OswAppV2::OswHalProxy&)'
131 | bgGif->setup(hal);
| ~~~~~~~~~~~~^~~~~
In file included from /home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/watchfaces/OswAppWatchface.cpp:11:
/home/hugo/Documentos/GitHub/open-smartwatch-os/./include/./apps/_experiments/gif_player.h:11:18: note: candidate: 'virtual void OswAppGifPlayer::setup()'
11 | virtual void setup() override;
| ^~~~~
/home/hugo/Documentos/GitHub/open-smartwatch-os/./include/./apps/_experiments/gif_player.h:11:18: note: candidate expects 0 arguments, 1 provided
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/watchfaces/OswAppWatchface.cpp: In member function 'virtual void OswAppWatchface::onDraw()':
/home/hugo/Documentos/GitHub/open-smartwatch-os/src/apps/watchfaces/OswAppWatchface.cpp:162:16: error: no matching function for call to 'OswAppGifPlayer::loop(OswHal*)'
162 | bgGif->loop(OswHal::getInstance());
How to reproduce this
Steps to reproduce the behavior:
Go to 'CMakeLists.txt'.
set the flag GIF_BG in "target_compile_definitions".
Compile the emulator.
See error.
What should happen instead?
Compile and show the GIF as background.
Environment
Model [Emulator]
OSW-OS [I tried master and NewAppClassAndMore branch]
It works now... More bad than good - it constantly crashes due to stack violations, but this is a problem for another day (and somebody else). I assume @uvwxy hacks to get the rendering working are too hacky...
What is not working?
The usage of GIF_BG drop a bunch of errors when compiling.
How to reproduce this
Steps to reproduce the behavior:
What should happen instead?
Compile and show the GIF as background.
Environment
Additional context
Nothing.