ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Patches/Win32.c
(Generate patch)

Comparing Daodan/src/Patches/Win32.c (file contents):
Revision 994 by alloc, Mon Apr 7 10:33:27 2014 UTC vs.
Revision 1163 by rossy, Sun Oct 24 02:50:48 2021 UTC

# Line 2 | Line 2
2  
3   #include "../Daodan.h"
4   #include "../Daodan_Config.h"
5 + #include "Input.h"
6   #include "Win32.h"
7  
8   #include "../Oni/Oni.h"
# Line 104 | Line 105 | static LRESULT CALLBACK DD_ONrPlatform_W
105                                  SetCursor(NULL);
106                                  return TRUE;
107                          }
108 <                        
108 >
109                          break;
110          }
111 <        
111 >
112 >        LRESULT res;
113 >        if (DDrInput_WindowProc(hWnd, uMsg, wParam, lParam, &res))
114 >                return res;
115 >
116          return ONrPlatform_WindowProc(hWnd, uMsg, wParam, lParam);
117   }
118  
# Line 152 | Line 157 | UUtError ONICALL DD_ONrPlatform_Initiali
157          }
158          else
159          {
160 <                ConfigOption_t* co = DDrConfig_GetOptOfType("options.border", C_BOOL);
160 >                ConfigOption_t* co = DDrConfig_GetOptOfType("windows.border", C_BOOL);
161                  int opt_border = 0;
162                  if (co && co->value.intBoolVal)
163                          opt_border = 1;
164 <                co = DDrConfig_GetOptOfType("options.topmost", C_BOOL);
164 >                co = DDrConfig_GetOptOfType("windows.topmost", C_BOOL);
165                  int opt_topmost = 0;
166                  if (co && co->value.intBoolVal)
167                          opt_topmost = 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)