소스 검색

Workaround for TFF font glitches under cursor in pregame

AlexVinS 11 년 전
부모
커밋
397f4cf8b6
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      client/CPreGame.cpp

+ 5 - 0
client/CPreGame.cpp

@@ -532,7 +532,12 @@ void CGPreGame::update()
 	// check for null othervice crash on finishing a campaign
 	// /FIXME: find out why GH.listInt is empty to begin with
 	if (GH.topInt() != nullptr)
+#ifdef VCMI_SDL1
 		GH.topInt()->show(screen);
+#else
+//FIXME: find better solution for TTF fonts under cursor glitches
+		GH.topInt()->showAll(screen);
+#endif
 
 	if (settings["general"]["showfps"].Bool())
 		GH.drawFPSCounter();