mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
* Disable VSYNC
* Fixed input for text etc. (focus messages got lost)
This commit is contained in:
@@ -666,10 +666,10 @@ oh_dear_its_a_label:
|
|||||||
...................... Refresh display if needed ......................
|
...................... Refresh display if needed ......................
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
if (housebtn.IsDropped) {
|
//if (housebtn.IsDropped) {
|
||||||
housebtn.Collapse();
|
//housebtn.Collapse();
|
||||||
display = REDRAW_BACKGROUND;
|
//display = REDRAW_BACKGROUND;
|
||||||
}
|
//}
|
||||||
Hide_Mouse();
|
Hide_Mouse();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -775,7 +775,7 @@ oh_dear_its_a_label:
|
|||||||
.......................... Redraw buttons ..........................
|
.......................... Redraw buttons ..........................
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
commands->Flag_List_To_Redraw();
|
//commands->Flag_List_To_Redraw();
|
||||||
commands->Draw_All();
|
commands->Draw_All();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -788,12 +788,14 @@ oh_dear_its_a_label:
|
|||||||
*/
|
*/
|
||||||
messages_have_focus = Session.Messages.Has_Edit_Focus();
|
messages_have_focus = Session.Messages.Has_Edit_Focus();
|
||||||
bool droplist_is_dropped = housebtn.IsDropped;
|
bool droplist_is_dropped = housebtn.IsDropped;
|
||||||
|
|
||||||
input = commands->Input();
|
input = commands->Input();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
........................ Invoke game callback .........................
|
........................ Invoke game callback .........................
|
||||||
*/
|
*/
|
||||||
Call_Back();
|
//Call_Back();
|
||||||
|
Device_Present();
|
||||||
|
|
||||||
Load_Title_Page(true);
|
Load_Title_Page(true);
|
||||||
|
|
||||||
|
|||||||
@@ -619,6 +619,7 @@ void Create_Main_Window ( HANDLE instance , int command_show , int width , int h
|
|||||||
SDL_Init(SDL_INIT_VIDEO);
|
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_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);
|
game_context = SDL_GL_CreateContext(game_window);
|
||||||
|
SDL_GL_SetSwapInterval(0);
|
||||||
|
|
||||||
SDL_SysWMinfo wmInfo;
|
SDL_SysWMinfo wmInfo;
|
||||||
SDL_VERSION(&wmInfo.version);
|
SDL_VERSION(&wmInfo.version);
|
||||||
|
|||||||
Reference in New Issue
Block a user