In debug build set position
This commit is contained in:
@@ -917,11 +917,17 @@ int main(int argc, char **argv)
|
||||
|
||||
// int w8 = (int)(display_mode->w * 0.8);
|
||||
// int h8 = (int)(display_mode->h * 0.8);
|
||||
|
||||
#if DEBUG_BUILD
|
||||
int whalf = 1000;
|
||||
int hhalf = 1000;
|
||||
int xhalf = 100;
|
||||
int yhalf = 100;
|
||||
#else
|
||||
int whalf = (int)(display_mode->w * 0.5) - 10;
|
||||
int hhalf = (int)(display_mode->h) - 120;
|
||||
int xhalf = whalf;
|
||||
int yhalf = 30;
|
||||
#endif
|
||||
|
||||
Uint32 window_flags = SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIGH_PIXEL_DENSITY;
|
||||
SDLWindow = SDL_CreateWindow("Text editor", whalf, hhalf, window_flags);
|
||||
|
||||
Reference in New Issue
Block a user