Skip to content

Commit

Permalink
Fixed build for Qt <5.10, MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
klayoutmatthias committed May 24, 2022
1 parent c933d1a commit d6f320b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/laybasic/laybasic/layColor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "tlMath.h"

#include <ctype.h>
#include <algorithm>

namespace lay
{
Expand Down
2 changes: 1 addition & 1 deletion src/laybasic/laybasic/layPixelBuffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ QImage
PixelBuffer::to_image_copy () const
{
QImage img (m_width, m_height, m_transparent ? QImage::Format_ARGB32 : QImage::Format_RGB32);
#if QT_VERSION < 0x050000
#if QT_VERSION < 0x051000
memcpy (img.bits (), data (), img.byteCount ());
#else
memcpy (img.bits (), data (), img.sizeInBytes ());
Expand Down

0 comments on commit d6f320b

Please sign in to comment.