Separate drawing program screen from desktop GUI code
This commit is contained in:
parent
3061c604c5
commit
7274a9396b
6 changed files with 79 additions and 49 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include "Helpers/StringHelpers.hpp"
|
||||
#include "Helpers/FileDownloader.hpp"
|
||||
#include "Screens/FileSelectScreen.hpp"
|
||||
#include "Screens/DrawingProgramScreen.hpp"
|
||||
#include "Screens/DesktopDrawingProgramScreen.hpp"
|
||||
#include "VersionConstants.hpp"
|
||||
#include "include/gpu/GpuTypes.h"
|
||||
#include <SDL3/SDL_filesystem.h>
|
||||
|
|
@ -539,7 +539,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) {
|
|||
}
|
||||
}
|
||||
|
||||
mS.m->screen = std::make_unique<FileSelectScreen>(*mS.m);
|
||||
mS.m->screen = std::make_unique<DrawingProgramScreen>(*mS.m);
|
||||
|
||||
mS.m->update(); // Run update once to make sure that callbacks dont crash
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue