improve compatability with old compiler

This commit is contained in:
Jinhao
2019-06-14 05:34:28 +08:00
parent 80b3566e9b
commit 363953be20
3 changed files with 16 additions and 20 deletions

View File

@@ -15,7 +15,6 @@
#include <nana/paint/graphics.hpp>
#include <nana/paint/pixel_buffer.hpp>
#include <vector>
#include <cassert>
#include <cstring>
#if defined(NANA_WINDOWS)
@@ -71,7 +70,6 @@ namespace nana{ namespace system{
bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
HDC hDC = ::GetDC(NULL);
if (::GetDIBits(hDC, (HBITMAP)g.pixmap(), 0, 1, NULL, (BITMAPINFO *)&bmi, DIB_RGB_COLORS) == 0) {
assert(false);
::ReleaseDC(NULL, hDC);
return false;
}
@@ -109,7 +107,6 @@ namespace nana{ namespace system{
::CloseClipboard();
}
}
assert(false);
::GlobalFree(h_gmem);
return false;