From 9062e0aae9f2f576b7a237c28028aa6b09feee5e Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Wed, 17 Aug 2022 23:41:08 -0400 Subject: undo and pen development --- main.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 74aaec6..06a691a 100644 --- a/main.cpp +++ b/main.cpp @@ -9,6 +9,7 @@ #if ARM #include +#include #else #include #endif @@ -244,12 +245,16 @@ int main(int argc, char *argv[]) { project_state State = {}; +#if ARM + InstructionMode = instruction_mode_neon; +#else if (SDL_HasSSE2()) { InstructionMode = instruction_mode_sse; } if (SDL_HasAVX2()) { InstructionMode = instruction_mode_avx; } +#endif project_data File = {}; File.Width = 1280; @@ -360,8 +365,11 @@ int main(int argc, char *argv[]) { SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); #if DEBUG - // uint32 ScreenSize[2] = {2560/1.2, 1600/1.2}; +#if ARM + uint32 ScreenSize[2] = {(uint32)(2560/1.2), (uint32)(1600/1.2)}; +#else real32 ScreenSize[2] = {3840/1.2, 2160/1.2}; +#endif #else real32 ScreenSize[2]; SDL_DisplayMode current; @@ -452,7 +460,7 @@ int main(int argc, char *argv[]) { ImGui::DockSpaceOverViewport(); - ImGui_Viewport(File, &State, &UI, CompBuffer, io, textureID); + ImGui_Viewport(File, &State, &UI, &Memory, CompBuffer, io, textureID); ImGui_File(&File, &State, &Memory, &UI, io); -- cgit v1.2.3