From 35730491ef90528be367b5c59261ec82984b50e0 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 17 Feb 2017 10:58:08 +0100 Subject: Add partial rendering support when rendering widgets to window pixel buffer and also when rendering window pixel buffer to native window. Win32 only partially implemented. --- plugingui/nativewindow_x11.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugingui/nativewindow_x11.h') diff --git a/plugingui/nativewindow_x11.h b/plugingui/nativewindow_x11.h index f98f151..1604734 100644 --- a/plugingui/nativewindow_x11.h +++ b/plugingui/nativewindow_x11.h @@ -54,7 +54,7 @@ public: void show() override; void hide() override; void setCaption(const std::string &caption) override; - void redraw() override; + void redraw(const Rect& dirty_rect) override; void grabMouse(bool grab) override; EventQueue getEvents() override; @@ -69,7 +69,8 @@ private: void deallocateShmImage(); //! Copy data from the pixel buffer into the shared memory - void updateImageFromBuffer(); + void updateImageFromBuffer(std::size_t x1, std::size_t y1, + std::size_t x2, std::size_t y2); XShmSegmentInfo shm_info; XImage* image{nullptr}; -- cgit v1.2.3