@@ -888,46 +888,46 @@ void tick()
888
888
notifyChanges ();
889
889
890
890
vec2i windowSize = gSystem ->getWindowSize ();
891
- recti r = {0 , 0 , windowSize.x , windowSize.y };
891
+ recti r = { 0 , 0 , windowSize.x , windowSize.y };
892
892
893
893
gTextOverlay ->handleInputs (events);
894
894
895
895
GuiMain::setViewSize (r.w , r.h );
896
- GuiMain::frameStart (deltaTime, events);
896
+ GuiMain::frameStart (deltaTime. count () , events);
897
897
898
898
vec2i view = gSystem ->getWindowSize ();
899
899
900
900
handleDialogs ();
901
901
902
- myGui->tick ({0 , 0 , view.x , view.y }, deltaTime, events);
903
-
904
- if (!GuiMain::isCapturingText ())
902
+ myGui->tick ({ 0 , 0 , view.x , view.y }, deltaTime. count () , events);
903
+
904
+ if (!GuiMain::isCapturingText ())
905
905
{
906
- for (KeyPress* press = nullptr ; events.next (press);)
906
+ for (KeyPress* press = nullptr ; events.next (press);)
907
907
{
908
908
Action::Type action = gShortcuts ->getAction (press->keyflags , press->key );
909
- if (action)
909
+ if (action)
910
910
{
911
911
Action::perform (action);
912
912
press->handled = true ;
913
913
}
914
914
}
915
915
}
916
916
917
- if (!GuiMain::isCapturingMouse ())
917
+ if (!GuiMain::isCapturingMouse ())
918
918
{
919
- for (MouseScroll* scroll = nullptr ; events.next (scroll);)
919
+ for (MouseScroll* scroll = nullptr ; events.next (scroll);)
920
920
{
921
921
Action::Type action = gShortcuts ->getAction (scroll->keyflags , scroll->up );
922
- if (action)
922
+ if (action)
923
923
{
924
924
Action::perform (action);
925
925
scroll->handled = true ;
926
926
}
927
927
}
928
928
}
929
929
930
- if (GuiMain::isCapturingMouse ())
930
+ if (GuiMain::isCapturingMouse ())
931
931
{
932
932
gSystem ->setCursor (GuiMain::getCursorIcon ());
933
933
}
@@ -937,14 +937,14 @@ void tick()
937
937
gMinimap ->handleInputs (events);
938
938
gEditing ->handleInputs (events);
939
939
940
- if (gSimfile ->isOpen ())
940
+ if (gSimfile ->isOpen ())
941
941
{
942
942
gView ->tick ();
943
943
}
944
944
945
945
gSelection ->handleInputs (events);
946
946
947
- if (gSimfile ->isOpen ())
947
+ if (gSimfile ->isOpen ())
948
948
{
949
949
gMusic ->tick ();
950
950
gMinimap ->tick ();
@@ -954,8 +954,8 @@ void tick()
954
954
955
955
updateTitle ();
956
956
notifyChanges ();
957
-
958
- if (gSimfile ->isOpen ())
957
+
958
+ if (gSimfile ->isOpen ())
959
959
{
960
960
gNotefield ->draw ();
961
961
gMinimap ->draw ();
0 commit comments