diff --git a/src/linux/X11FrameProcessor.cpp b/src/linux/X11FrameProcessor.cpp index e30540f4..b687bd95 100644 --- a/src/linux/X11FrameProcessor.cpp +++ b/src/linux/X11FrameProcessor.cpp @@ -89,7 +89,7 @@ namespace Screen_Capture if(Data->CaptureEntireMonitor && !Data->CaptureDifMonitor) { - auto wholeimg = Create(ret, PixelStride, 0, Image->data); + auto wholeimg = Create(ret, PixelStride, 0, reinterpret_cast(Image->data)); Data->CaptureEntireMonitor(wholeimg, SelectedMonitor); } else { memcpy(NewImageBuffer.get(), Image->data, PixelStride * ret.right * ret.bottom); diff --git a/src/linux/X11MouseProcessor.cpp b/src/linux/X11MouseProcessor.cpp index 4fd971c3..cd101b0c 100644 --- a/src/linux/X11MouseProcessor.cpp +++ b/src/linux/X11MouseProcessor.cpp @@ -52,8 +52,8 @@ namespace SL { imgrect.bottom = img->height; auto newsize = PixelStride*imgrect.right*imgrect.bottom; if(newsize>ImageBufferSize){ - NewImageBuffer = std::make_unique(PixelStride*imgrect.right*imgrect.bottom); - OldImageBuffer=std::make_unique(PixelStride*imgrect.right*imgrect.bottom); + NewImageBuffer = std::make_unique(PixelStride*imgrect.right*imgrect.bottom); + OldImageBuffer=std::make_unique(PixelStride*imgrect.right*imgrect.bottom); } memcpy(NewImageBuffer.get(), img->pixels, newsize);