comparison window/system.cc @ 65:4416cfac86ae

Convert EUC-JP files to UTF8
author Thibaut Girka <thib@sitedethib.com>
date Fri, 26 Nov 2010 10:53:15 +0100
parents d7cde171a1de
children
comparison
equal deleted inserted replaced
64:045ca45f9610 65:4416cfac86ae
77 event.Exec(Event::Time::FRAME_UPDATE); 77 event.Exec(Event::Time::FRAME_UPDATE);
78 cout.flush(); 78 cout.flush();
79 old_time = start_time; 79 old_time = start_time;
80 } 80 }
81 81
82 // ꡧ 82 // 問題:
83 // z xy ߴġ® 83 // z 軸と xy 軸の相互干渉;高速化
84 // ư륦åι® 84 // 移動するウィジット描画の高速化
85 // å 85 // キャッシュ
86 // ʸΰΤ߹ι® 86 // 文字列の一部のみ更新の高速化
87 // ֳ z x ʤΰ̵y ʤΰפɤExpose 87 // 「階層 z で x なる領域無効化、y なる領域生成」で良い?>Expose
88 /* 88 /*
89 Uint32 end_time = SDL_GetTicks(); 89 Uint32 end_time = SDL_GetTicks();
90 Uint32 delay = (end_time-start_time); 90 Uint32 delay = (end_time-start_time);
91 if(delay < 1000/framerate) SDL_Delay(1000/framerate - delay); 91 if(delay < 1000/framerate) SDL_Delay(1000/framerate - delay);
92 else SDL_Delay(0); 92 else SDL_Delay(0);
96 } 96 }
97 97
98 void Main::SetCursor(Surface* s, const Rect& r) { 98 void Main::SetCursor(Surface* s, const Rect& r) {
99 if (instance == NULL) return; 99 if (instance == NULL) return;
100 if (instance->cursor) delete instance->cursor; 100 if (instance->cursor) delete instance->cursor;
101 if (s == NULL) { // õ 101 if (s == NULL) { // カーソル消去
102 instance->cursor = NULL; 102 instance->cursor = NULL;
103 } else if (s == DEFAULT_MOUSECURSOR) { 103 } else if (s == DEFAULT_MOUSECURSOR) {
104 instance->cursor = NULL; 104 instance->cursor = NULL;
105 SDL_ShowCursor(SDL_ENABLE); 105 SDL_ShowCursor(SDL_ENABLE);
106 } else { 106 } else {