• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision027b16db0a1f5c3744d6720dbf7ef35293f11001 (tree)
Time2012-11-18 23:44:17
Authorshom5xg <shom@.(no...>
Commitershom5xg

Log Message

変数名修正

Change Summary

Incremental Difference

--- a/core/src/core/window.cpp
+++ b/core/src/core/window.cpp
@@ -19,15 +19,15 @@ using namespace window_def;
1919
2020 namespace
2121 {
22- b32 b_window_close = FALSE;
22+ b32 s_bWindowClose = FALSE;
2323
24- b32 b_window_active = TRUE;
25- b32 b_message_box_appearing = FALSE;
24+ b32 s_bWindowActive = TRUE;
25+ b32 s_bMessageBoxAppearing = FALSE;
2626
27- u32 client_width = sc_client_width_init;
28- u32 client_height = sc_client_height_init;
29- u32 window_pos_x = sc_window_pos_x_init;
30- u32 window_pos_y = sc_window_pos_y_init;
27+ u32 s_uClientWidth = sc_client_width_init;
28+ u32 s_uClientHeight = sc_client_height_init;
29+ u32 s_uWindowPosX = sc_window_pos_x_init;
30+ u32 s_uWindowPosY = sc_window_pos_y_init;
3131 }
3232
3333
@@ -67,7 +67,7 @@ HWND window::InitApp( HINSTANCE hinst, int nCmdShow )
6767 sc_sz_wnd_class_name, sc_sz_wnd_name,
6868 ~(WS_MAXIMIZEBOX | WS_THICKFRAME) & WS_OVERLAPPEDWINDOW,
6969 //最大化ボタンを持たない・境界変更のできない
70- 0, 0, client_width, client_height,
70+ 0, 0, s_uClientWidth, s_uClientHeight,
7171 GetDesktopWindow(),
7272 NULL, hinst, NULL
7373 );
@@ -86,12 +86,12 @@ HWND window::InitApp( HINSTANCE hinst, int nCmdShow )
8686 DEBUG_BREAK();
8787 return NULL;
8888 }
89- int ww = client_width +
89+ int ww = s_uClientWidth +
9090 ((wRect.right - wRect.left) - (cRect.right - cRect.left));
91- int wh = client_height +
91+ int wh = s_uClientHeight +
9292 ((wRect.bottom - wRect.top) - (cRect.bottom - cRect.top));
9393
94- if( SetWindowPos( h_wnd, HWND_TOP, window_pos_x, window_pos_y,
94+ if( SetWindowPos( h_wnd, HWND_TOP, s_uWindowPosX, s_uWindowPosY,
9595 ww, wh, SWP_SHOWWINDOW ) == 0 )
9696 {
9797 DEBUG_BREAK();
@@ -110,7 +110,7 @@ HWND window::InitApp( HINSTANCE hinst, int nCmdShow )
110110
111111 int window::FinApp( HWND h_wnd, HINSTANCE h_inst )
112112 {
113- if( !b_window_close )
113+ if( !s_bWindowClose )
114114 {
115115 VERIFY( DestroyWindow( h_wnd ) != 0 );
116116 }
@@ -150,7 +150,7 @@ namespace
150150 }
151151 else
152152 {
153- b_window_close = TRUE;
153+ s_bWindowClose = TRUE;
154154
155155 return TRUE;
156156 }
@@ -194,13 +194,13 @@ LRESULT CALLBACK window::callback_msg_proc(
194194 if( (int)w_param == VK_ESCAPE )
195195 {
196196 //確認ダイアログを出す
197- b_message_box_appearing = TRUE;
197+ s_bMessageBoxAppearing = TRUE;
198198 int result = MessageBoxEx(
199199 h_wnd, _T( "中断しますか?" ), sc_sz_wnd_name,
200200 MB_YESNO | MB_ICONQUESTION | MB_DEFBUTTON2,
201201 LANG_JAPANESE
202202 );
203- b_message_box_appearing = FALSE;
203+ s_bMessageBoxAppearing = FALSE;
204204
205205 ASSERT( result != 0 );
206206 if( result != IDNO/*choise cancel*/ )
@@ -219,7 +219,7 @@ LRESULT CALLBACK window::callback_msg_proc(
219219 if( w_param == WA_INACTIVE )
220220 //非アクティブ化
221221 {
222- b_window_active = FALSE;
222+ s_bWindowActive = FALSE;
223223 }
224224 else
225225 //アクティブ化
@@ -227,7 +227,7 @@ LRESULT CALLBACK window::callback_msg_proc(
227227 ///インプットの復帰
228228 //restart_device();
229229
230- b_window_active = TRUE;
230+ s_bWindowActive = TRUE;
231231 }
232232
233233 return 0;
@@ -246,52 +246,52 @@ LRESULT CALLBACK window::callback_msg_proc(
246246
247247 b32 window::IsWindowActive()
248248 {
249- return b_window_active;
249+ return s_bWindowActive;
250250 }
251251
252252 b32 window::IsMessageBoxAppearing()
253253 {
254- return b_message_box_appearing;
254+ return s_bMessageBoxAppearing;
255255 }
256256
257257 u32 window::GetClientWidth()
258258 {
259- return client_width;
259+ return s_uClientWidth;
260260 }
261261
262262 u32 window::GetClientHeight()
263263 {
264- return client_height;
264+ return s_uClientHeight;
265265 }
266266
267267 void window::SetClientWidth( u32 width )
268268 {
269- client_width = width;
269+ s_uClientWidth = width;
270270 }
271271
272272 void window::SetClientHeight( u32 height )
273273 {
274- client_height = height;
274+ s_uClientHeight = height;
275275 }
276276
277277 u32 window::GetWindowPosX()
278278 {
279- return window_pos_x;
279+ return s_uWindowPosX;
280280 }
281281
282282 u32 window::GetWindowPosY()
283283 {
284- return window_pos_y;
284+ return s_uWindowPosY;
285285 }
286286
287287 void window::SetWindowPosX( u32 x )
288288 {
289- window_pos_x = x;
289+ s_uWindowPosX = x;
290290 }
291291
292292 void window::SetWindowPosY( u32 y )
293293 {
294- window_pos_y = y;
294+ s_uWindowPosY = y;
295295 }
296296
297297