win32: fix build. 3dview is broken for a bit while it is renovated
This commit is contained in:
parent
32e64e3e51
commit
dea5e779c8
|
@ -129,20 +129,20 @@ VideoInfo video;
|
||||||
#pragma comment(lib,"comctl32.lib")
|
#pragma comment(lib,"comctl32.lib")
|
||||||
#include "../wxdlg/wxdlg3dViewer.h"
|
#include "../wxdlg/wxdlg3dViewer.h"
|
||||||
|
|
||||||
//class wxDesmumeApp : public wxApp
|
class wxDesmumeApp : public wxApp
|
||||||
//{
|
{
|
||||||
//public:
|
public:
|
||||||
// //call me each frame or something.
|
//call me each frame or something.
|
||||||
// //sort of an idle routine
|
//sort of an idle routine
|
||||||
// static void frameUpdate()
|
static void frameUpdate()
|
||||||
// {
|
{
|
||||||
// if(!wxTheApp) return;
|
if(!wxTheApp) return;
|
||||||
// wxDesmumeApp* self = ((wxDesmumeApp*)wxTheApp);
|
wxDesmumeApp* self = ((wxDesmumeApp*)wxTheApp);
|
||||||
// self->DeletePendingObjects();
|
self->DeletePendingObjects();
|
||||||
// }
|
}
|
||||||
//};
|
};
|
||||||
|
|
||||||
//IMPLEMENT_APP_NO_MAIN( wxDesmumeApp )
|
IMPLEMENT_APP_NO_MAIN( wxDesmumeApp )
|
||||||
|
|
||||||
void wxTest() {
|
void wxTest() {
|
||||||
//wxdlg3dViewer *viewer = new wxdlg3dViewer(NULL);
|
//wxdlg3dViewer *viewer = new wxdlg3dViewer(NULL);
|
||||||
|
@ -2637,36 +2637,36 @@ int _main()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//int WINAPI WinMain (HINSTANCE hThisInstance,
|
int WINAPI WinMain (HINSTANCE hThisInstance,
|
||||||
// HINSTANCE hPrevInstance,
|
HINSTANCE hPrevInstance,
|
||||||
// LPSTR lpszArgument,
|
LPSTR lpszArgument,
|
||||||
// int nFunsterStil)
|
int nFunsterStil)
|
||||||
//
|
|
||||||
//{
|
{
|
||||||
// TIMECAPS tc;
|
TIMECAPS tc;
|
||||||
// if (timeGetDevCaps(&tc, sizeof(TIMECAPS))== TIMERR_NOERROR)
|
if (timeGetDevCaps(&tc, sizeof(TIMECAPS))== TIMERR_NOERROR)
|
||||||
// {
|
{
|
||||||
// wmTimerRes = std::min(std::max(tc.wPeriodMin, (UINT)1), tc.wPeriodMax);
|
wmTimerRes = std::min(std::max(tc.wPeriodMin, (UINT)1), tc.wPeriodMax);
|
||||||
// timeBeginPeriod (wmTimerRes);
|
timeBeginPeriod (wmTimerRes);
|
||||||
// }
|
}
|
||||||
// else
|
else
|
||||||
// {
|
{
|
||||||
// wmTimerRes = 5;
|
wmTimerRes = 5;
|
||||||
// timeBeginPeriod (wmTimerRes);
|
timeBeginPeriod (wmTimerRes);
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
// hAppInst=hThisInstance;
|
hAppInst=hThisInstance;
|
||||||
// OpenConsole(); // Init debug console
|
OpenConsole(); // Init debug console
|
||||||
//
|
|
||||||
// int ret = _main();
|
int ret = _main();
|
||||||
//
|
|
||||||
// timeEndPeriod (wmTimerRes);
|
timeEndPeriod (wmTimerRes);
|
||||||
//
|
|
||||||
// CloseConsole();
|
CloseConsole();
|
||||||
//
|
|
||||||
// return ret;
|
return ret;
|
||||||
//}
|
}
|
||||||
|
|
||||||
void UpdateWndRects(HWND hwnd)
|
void UpdateWndRects(HWND hwnd)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue