* Disable VSYNC

* Fixed input for text etc. (focus messages got lost)
This commit is contained in:
Ben Lankamp
2020-06-21 23:48:48 +02:00
parent 6676b00cc5
commit 3ced844e55
2 changed files with 9 additions and 6 deletions
+8 -6
View File
@@ -666,10 +666,10 @@ oh_dear_its_a_label:
...................... Refresh display if needed ......................
*/
{
if (housebtn.IsDropped) {
housebtn.Collapse();
display = REDRAW_BACKGROUND;
}
//if (housebtn.IsDropped) {
//housebtn.Collapse();
//display = REDRAW_BACKGROUND;
//}
Hide_Mouse();
/*
@@ -775,7 +775,7 @@ oh_dear_its_a_label:
.......................... Redraw buttons ..........................
*/
{
commands->Flag_List_To_Redraw();
//commands->Flag_List_To_Redraw();
commands->Draw_All();
}
@@ -788,12 +788,14 @@ oh_dear_its_a_label:
*/
messages_have_focus = Session.Messages.Has_Edit_Focus();
bool droplist_is_dropped = housebtn.IsDropped;
input = commands->Input();
/*
........................ Invoke game callback .........................
*/
Call_Back();
//Call_Back();
Device_Present();
Load_Title_Page(true);
+1
View File
@@ -619,6 +619,7 @@ void Create_Main_Window ( HANDLE instance , int command_show , int width , int h
SDL_Init(SDL_INIT_VIDEO);
game_window = SDL_CreateWindow(WINDOW_NAME, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height, SDL_WINDOW_SHOWN | SDL_WINDOW_OPENGL);
game_context = SDL_GL_CreateContext(game_window);
SDL_GL_SetSwapInterval(0);
SDL_SysWMinfo wmInfo;
SDL_VERSION(&wmInfo.version);