mirror of https://github.com/KLayout/klayout.git
Merge remote-tracking branch 'origin/master' into master-mac-qt6
This commit is contained in:
commit
9b2e2cd5ed
|
|
@ -26,6 +26,7 @@
|
|||
#include "tlMath.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <algorithm>
|
||||
|
||||
namespace lay
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 ());
|
||||
|
|
@ -707,7 +707,7 @@ QImage
|
|||
BitmapBuffer::to_image_copy () const
|
||||
{
|
||||
QImage img (m_width, m_height, QImage::Format_MonoLSB);
|
||||
#if QT_VERSION < 0x050000
|
||||
#if QT_VERSION < 0x051000
|
||||
memcpy (img.bits (), data (), img.byteCount ());
|
||||
#else
|
||||
memcpy (img.bits (), data (), img.sizeInBytes ());
|
||||
|
|
|
|||
Loading…
Reference in New Issue