From b9425707ea96e19af7617b6e1beefba6e90702e7 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 22 Mar 2021 16:19:26 +1100 Subject: Replace InitPixMap on Cocoa for drag & drop and XPM images in lists. --- cocoa/PlatCocoa.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cocoa/PlatCocoa.h') diff --git a/cocoa/PlatCocoa.h b/cocoa/PlatCocoa.h index d11b52336..83b724df9 100644 --- a/cocoa/PlatCocoa.h +++ b/cocoa/PlatCocoa.h @@ -82,6 +82,7 @@ public: void Init(SurfaceID sid, WindowID wid) override; void InitPixMap(int width, int height, Surface *surface_, WindowID wid) override; std::unique_ptr AllocatePixMap(int width, int height) override; + std::unique_ptr AllocatePixMapImplementation(int width, int height); CGContextRef GetContext() { return gc; } void SetMode(SurfaceMode mode) override; @@ -93,7 +94,7 @@ public: /** Returns a CGImageRef that represents the surface. Returns NULL if this is not possible. */ CGImageRef CreateImage(); - void CopyImageRectangle(Surface &surfaceSource, PRectangle srcRect, PRectangle dstRect); + void CopyImageRectangle(SurfaceImpl *source, PRectangle srcRect, PRectangle dstRect); int LogPixelsY() override; int PixelDivisions() override; -- cgit v1.2.3