| 279 | } |
| 280 | |
| 281 | int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { |
| 282 | const HCURSOR hcurSave = ::SetCursor(LoadCursor(0, IDC_WAIT)); |
| 283 | |
| 284 | // Disable automatic DPI scaling. |
| 285 | //::SetProcessDPIAware(); |
| 286 | |
| 287 | // Initialize global strings |
| 288 | ::LoadString(hInstance, IDS_APP_TITLE, szTitle, COUNT_OF(szTitle)); |
| 289 | |
| 290 | InitInstance(hInstance, lpCmdLine, nCmdShow); |
| 291 | |
| 292 | haccelTable = ::LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_GAME)); |
| 293 | |
| 294 | ::SetCursor(hcurSave); |
| 295 | |
| 296 | ::SetFocus(hmainWnd); |
| 297 | |
| 298 | int t0 = BE1::PlatformTime::Milliseconds(); |
| 299 | |
| 300 | while (1) { |
| 301 | int t = BE1::PlatformTime::Milliseconds(); |
| 302 | int elapsedMsec = t - t0; |
| 303 | BE1::Clamp(elapsedMsec, 0, 1000); |
| 304 | |
| 305 | t0 = t; |
| 306 | |
| 307 | if (!RunFrameInstance(elapsedMsec)) { |
| 308 | break; |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | ShutdownInstance(); |
| 313 | |
| 314 | return 0; |
| 315 | } |
| 316 | |
| 317 | INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { |
| 318 | UNREFERENCED_PARAMETER(lParam); |
nothing calls this directly
no test coverage detected