From 0f1ded057dbf875e69a0d72418d95610db8fa6a3 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 30 Dec 2019 10:50:52 +0100 Subject: Provide correct dimensions for XShm setup Since 53f913a we initialize the underlying PixelBuffer with 0x0 dimensions, which means we need to keep more explicit track of what we are trying to allocate in the setup methods. --- vncviewer/PlatformPixelBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vncviewer/PlatformPixelBuffer.h') diff --git a/vncviewer/PlatformPixelBuffer.h b/vncviewer/PlatformPixelBuffer.h index f9038cd9..ec439f64 100644 --- a/vncviewer/PlatformPixelBuffer.h +++ b/vncviewer/PlatformPixelBuffer.h @@ -53,7 +53,7 @@ protected: #if !defined(WIN32) && !defined(__APPLE__) protected: - bool setupShm(); + bool setupShm(int width, int height); protected: XShmSegmentInfo *shminfo; -- cgit v1.2.3