From 384ed98f12e7a8182ee6eb051e6710db4c42849a Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Wed, 5 Sep 2018 01:42:06 +0100 Subject: [PATCH] Delete unneeded test code. --- src/gui/main.cpp | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 3807168..487cae6 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -12,51 +12,6 @@ #include #include -namespace { -// std::vector make_checker_bitmap (int32_t w, int32_t h, bool inv) { -// const int32_t scanline_size = ((w * 3 * CHAR_BIT + 31) bitand ~31) / CHAR_BIT; -// std::vector retval( -// sizeof(bmp::FileHeader) + -// sizeof(bmp::ImageHeader) + -// scanline_size * h -// ); -// -// bmp::FileHeader fhead; -// bmp::ImageHeader ihead; -// -// uint32_t copy_offs = sizeof(bmp::FileHeader) + sizeof(bmp::ImageHeader); -// -// fhead.bfSizeHi = static_cast(retval.size() >> 16); -// fhead.bfSizeLo = static_cast(retval.size() & 0xFFFF); -// fhead.bfOffBitsHi = static_cast(copy_offs >> 16); -// fhead.bfOffBitsLo = static_cast(copy_offs & 0xFFFF); -// ihead.biWidth = w; -// ihead.biHeight = h; -// -// std::copy(reinterpret_cast(&fhead), reinterpret_cast(&fhead + 1), retval.begin()); -// std::copy(reinterpret_cast(&ihead), reinterpret_cast(&ihead + 1), retval.begin() + sizeof(bmp::FileHeader)); -// -// const std::array pixels { -// static_cast(0xf1), -// static_cast(0x96), -// static_cast(0x96), -// static_cast(0x17), -// static_cast(0xc8), -// static_cast(0xc6) -// }; -// for (int32_t y = 0; y < h; ++y) { -// for (int32_t x = 0; x < w; ++x) { -// retval[copy_offs + x * 3 + 0] = pixels[(x bitand 1 xor inv) * 3 + 0]; -// retval[copy_offs + x * 3 + 1] = pixels[(x bitand 1 xor inv) * 3 + 1]; -// retval[copy_offs + x * 3 + 2] = pixels[(x bitand 1 xor inv) * 3 + 2]; -// } -// copy_offs += scanline_size; -// } -// -// return retval; -// } -} //unnamed namespace - int main() { nana::form frm;