David Rose 24 years ago
parent
commit
22ff3439e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/wgldisplay/wglGraphicsWindow.cxx

+ 1 - 1
panda/src/wgldisplay/wglGraphicsWindow.cxx

@@ -1670,7 +1670,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
         // endianness of this.  I guess it's safe to assume all Win32
         // endianness of this.  I guess it's safe to assume all Win32
         // machines are little-endian.
         // machines are little-endian.
         for (DWORD i = 0; i < result_size; i += 2) {
         for (DWORD i = 0; i < result_size; i += 2) {
-          int result = (int)(ime_result[i + 1] << 8) | ime_result[i];
+          int result = ((int)ime_result[i + 1] << 8) | ime_result[i];
           _input_devices[0].keystroke(result);
           _input_devices[0].keystroke(result);
         }
         }
         return 0;
         return 0;