More cleanups.

Changes to make the FDC work with single-sided drives.
Changes to show user 160/180 and 320/360K drives are the same.
More changes that deal with VNC (new VNC lib in progress)
Fixed bugs in New Image code.
Fixed screenshots not working.
This commit is contained in:
waltje
2018-05-14 17:51:07 -04:00
parent cfda8ef931
commit d136e28136
26 changed files with 278 additions and 4551 deletions

View File

@@ -8,7 +8,7 @@
*
* Rendering module for Microsoft DirectDraw 9.
*
* Version: @(#)win_ddraw.cpp 1.0.9 2018/05/09
* Version: @(#)win_ddraw.cpp 1.0.10 2018/05/13
*
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com>
@@ -215,7 +215,6 @@ static void
SavePNG(const wchar_t *fn, HBITMAP hBitmap)
{
WCHAR temp[512];
BITMAPFILEHEADER bmpFileHeader;
BITMAPINFO bmpInfo;
HDC hdc;
LPVOID pBuf = NULL;
@@ -381,6 +380,7 @@ SaveBMP(const wchar_t *fn, HBITMAP hBitmap)
GetDIBits(hdc, hBitmap, 0, bmpInfo.bmiHeader.biHeight, pBuf, &bmpInfo, DIB_RGB_COLORS);
if ((fp = _wfopen(fn, L"wb")) == NULL) {
pclog("[SaveBMP] File %ls could not be opened for writing!\n", fn);
_swprintf(temp, get_string(IDS_2088), fn);
ui_msgbox(MBX_ERROR, temp);
break;