diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-08-17 23:41:08 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-08-17 23:41:08 -0400 |
commit | 9062e0aae9f2f576b7a237c28028aa6b09feee5e (patch) | |
tree | 98b37bd442b9b6477f8061690744d73efeaa7d0b /main.cpp | |
parent | e89dc91182a94e48ca9220a2fe075db680ddff04 (diff) |
undo and pen development
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -9,6 +9,7 @@ #if ARM #include <arm_neon.h> +#include <arm_sve.h> #else #include <smmintrin.h> #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); |