소스 검색

Make the GTK editor more responsive.

legacy
Sam Hocevar sam 14 년 전
부모
커밋
601ce07746
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      src/gtk/editor.cpp

+ 3
- 3
src/gtk/editor.cpp 파일 보기

@@ -156,9 +156,9 @@ int main(int argc, char **argv)
new Game("maps/testmap.tmx");
new DebugFps();

//gtk_idle_add(tick, glarea);
gtk_timeout_add(1000 / FPS, tick, glarea);
/* We tick from the idle function instead of a timeout to avoid
* stealing time from the GTK loop. */
gtk_idle_add(tick, glarea);
gtk_main();

return EXIT_SUCCESS;


불러오는 중...
취소
저장