Added SVG Screenshot support

This commit is contained in:
Yousef Khadadeh 2025-08-23 17:04:53 +03:00
parent 95c1c3c9e5
commit 45e2a8a032
3 changed files with 143 additions and 68 deletions

View file

@ -404,12 +404,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) {
mS.hiddenCursor = SDL_CreateCursor((Uint8 *)cursorData, (Uint8 *)cursorData, 8, 8, 4, 4);
mS.m = std::make_unique<MainProgram>();
#ifdef __EMSCRIPTEN__
mS.m->window.defaultMSAASampleCount = 4;
#else
mS.m->window.defaultMSAASampleCount = 0;
mS.m->window.defaultMSAASurfaceProps = SkSurfaceProps(SkSurfaceProps::kDynamicMSAA_Flag, kUnknown_SkPixelGeometry);
#endif
mS.m->logFile = &mS.logFile;
mS.m->configPath = mS.configPath;
mS.m->homePath = mS.homePath;