Changeset 36411 for lang/objective-cplusplus/i3/trunk/src
- Timestamp:
- 01/11/10 15:01:47 (3 years ago)
- Location:
- lang/objective-cplusplus/i3/trunk/src
- Files:
-
- 2 modified
-
gui-windows/Gui.cpp (modified) (1 diff)
-
mil/include/mil/gui-windows/GuiModule.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/src/gui-windows/Gui.cpp
r36373 r36411 4 4 namespace i3 { 5 5 6 7 6 8 int global_loop() { 7 9 MSG msg = {}; 8 for (;;) {10 while (true) { 9 11 BOOL result = GetMessage(&msg, NULL, 0, 0); 10 if (!result) { 11 break; 12 } else if (result == -1) { 12 if (likely(result != -1 && result != 0)) { 13 // dirty if-condition is for most expected branch 14 TranslateMessage(&msg); 15 DispatchMessage(&msg); 16 continue; 17 } 18 19 if (result == -1) { 20 // error 13 21 halt << msg.message; 14 break;15 22 } 16 17 TranslateMessage(&msg); 18 DispatchMessage(&msg); 23 break; 19 24 } 20 25 return (int)msg.wParam; -
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/gui-windows/GuiModule.h
r36410 r36411 160 160 BOOL result = GetMessage(&msg, NULL, 0, 0); 161 161 if (likely(result != -1 && result != 0 && !break_loop_request)) { 162 // dirty if condition is for most expected branch162 // dirty if-condition is for most expected branch 163 163 TranslateMessage(&msg); 164 164 DispatchMessage(&msg); … … 187 187 template <typename Sender> 188 188 HWND getCachedWindow(Sender& sender, bool flush = false) { 189 // XXX must compare no cached 189 190 if (!flush) { 190 191 HWND window = sender.tls.getData(this->thread_id).window_cache;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)