~sil2100/nux/revert_640

« back to all changes in this revision

Viewing changes to NuxGraphics/GraphicsDisplayWin.cpp

  • Committer: Łukasz 'sil2100' Zemczak
  • Date: 2012-08-08 12:58:24 UTC
  • Revision ID: lukasz.zemczak@canonical.com-20120808125824-12o0md3gbv5jrawm
Reverting revision 640, as it was causing many serious regressions. The direct cause seems to be libgeis, not the nux changes themselves - but this is the easiest way of resolving the problem. This code can be re-added once geis is fixed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1131
1131
  }
1132
1132
 
1133
1133
//---------------------------------------------------------------------------------------------------------
1134
 
  bool GraphicsDisplay::GetSystemEvent(Event *evt)
 
1134
  void GraphicsDisplay::GetSystemEvent(Event *evt)
1135
1135
  {
1136
1136
    MSG         msg;
1137
1137
    event_->Reset();
1138
1138
    // Erase mouse event and mouse doubleclick states. Keep the mouse states.
1139
1139
    event_->mouse_state &= 0x0F000000;
1140
 
    bool got_event;
1141
1140
 
1142
1141
    // Always set the second parameter of PeekMessage to NULL. Indeed, many services creates
1143
1142
    // windows on the program behalf. If pass the main window as filter, we will miss all the
1155
1154
      DispatchMessage(&msg);
1156
1155
 
1157
1156
      memcpy(evt, event_, sizeof(Event));
1158
 
      got_event = true;
1159
1157
    }
1160
1158
    else
1161
1159
    {
1162
1160
      memcpy(evt, event_, sizeof(Event));
1163
 
      got_event = false;
1164
1161
    }
1165
1162
 
1166
1163
    if (msg.message == WM_QUIT)
1178
1175
      event_->type = NUX_NO_EVENT;
1179
1176
      memcpy(evt, event_, sizeof(Event));
1180
1177
    }
1181
 
 
1182
 
    return got_event;
1183
1178
  }
1184
1179
 
1185
1180
  void GraphicsDisplay::ProcessForeignWin32Event(HWND hWnd, MSG msg, WPARAM wParam, LPARAM lParam, Event *event)