|
|
| version 1.32, 2005/03/20 08:58:20 | version 1.34, 2011/02/15 00:51:52 |
|---|---|
| Line 653 LRESULT CALLBACK WndProc(HWND hWnd, UINT | Line 653 LRESULT CALLBACK WndProc(HWND hWnd, UINT |
| case WM_PAINT: | case WM_PAINT: |
| hdc = BeginPaint(hWnd, &ps); | hdc = BeginPaint(hWnd, &ps); |
| if (np2opening) { | if (np2opening) { |
| HINSTANCE hinst; | HINSTANCE hinst; |
| RECT rect; | RECT rect; |
| int width; | int width; |
| int height; | int height; |
| HBITMAP hbmp; | HBITMAP hbmp; |
| BITMAP bmp; | BITMAP bmp; |
| HDC hmdc; | HDC hmdc; |
| HBRUSH hbrush; | HBRUSH hbrush; |
| hinst = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE); | |
| #if defined(_WIN64) | |
| hinst = reinterpret_cast<HINSTANCE>(::GetWindowLongPtr(hWnd, GWLP_HINSTANCE)); | |
| #else | |
| hinst = reinterpret_cast<HINSTANCE>(::GetWindowLong(hWnd, GWL_HINSTANCE)); | |
| #endif | |
| GetClientRect(hWnd, &rect); | GetClientRect(hWnd, &rect); |
| width = rect.right - rect.left; | width = rect.right - rect.left; |
| height = rect.bottom - rect.top; | height = rect.bottom - rect.top; |
| Line 1018 int WINAPI WinMain(HINSTANCE hInstance, | Line 1023 int WINAPI WinMain(HINSTANCE hInstance, |
| // リセットしてから… コマンドラインのディスク挿入。 // ver0.29 | // リセットしてから… コマンドラインのディスク挿入。 // ver0.29 |
| for (i=0; i<4; i++) { | for (i=0; i<4; i++) { |
| if (np2arg.disk[i]) { | if (np2arg.disk[i]) { |
| milstr_ncpy(diskdrv_fname[i], np2arg.disk[i], MAX_PATH); | diskdrv_readyfdd((REG8)i, np2arg.disk[i], 0); |
| diskdrv_delay[i] = 1; | |
| } | } |
| } | } |
| Line 1134 int WINAPI WinMain(HINSTANCE hInstance, | Line 1138 int WINAPI WinMain(HINSTANCE hInstance, |
| _MEM_USED("report.txt"); | _MEM_USED("report.txt"); |
| dosio_term(); | dosio_term(); |
| return(msg.wParam); | return static_cast<int>(msg.wParam); |
| } | } |