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

Comparing Daodan/src/Daodan.c (file contents):
Revision 322 by rossy, Fri May 15 11:45:19 2009 UTC vs.
Revision 326 by rossy, Thu May 28 10:33:59 2009 UTC

# Line 1 | Line 1
1   #include "Daodan.h"
2   #include "Daodan_Patch.h"
3   #include "Daodan_Utility.h"
4 + #include "Daodan_Win32.h"
5  
6   #include "Oni.h"
7   #include "BFW_Utility.h"
# Line 81 | Line 82 | void __cdecl DDrMain(int argc, char* arg
82          DDrPatch_MakeJump(UUrMachineTime_High_Frequency, DDrMachineTime_High_Frequency);
83          DDrPatch_MakeJump(UUrMachineTime_Sixtieths, DDrMachineTime_Sixtieths);
84          
85 +        // Windowed mode
86 +        DDrPatch_MakeJump(ONrPlatform_Initialize, DDrPlatform_Initialize);
87 +        DDrPatch_MakeJump(gl_platform_initialize, daodangl_platform_initialize);
88 +        
89 +        init_daodan_gl();
90 +        
91          ONiMain(argc, argv);
92   }
93  

Diff Legend

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