summaryrefslogtreecommitdiff
path: root/media-libs/lsp-plugins/files/lsp-plugins-1.2.3-fix-double-buffering.patch
blob: 8bd6cc4170e22e1223befef15741993cb73d9223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
https://github.com/lsp-plugins/lsp-tk-lib/commit/9afbda5b0db2909304248bdc69bb5c03a4278f74
https://github.com/sadko4u/lsp-plugins/issues/272
https://bugs.gentoo.org/877557

From: sadko4u <sadko4u@gmail.com>
Date: Fri, 9 Sep 2022 23:36:53 +0300
Subject: [PATCH] Returned back double buffering for the window

--- a/modules/lsp-tk-lib/src/main/widgets/containers/Window.cpp
+++ b/modules/lsp-tk-lib/src/main/widgets/containers/Window.cpp
@@ -300,15 +300,20 @@ namespace lsp
 
             size_t flags = nFlags;
 
-            s->begin();
+            ws::ISurface *bs = get_surface(s);
+            bs->begin();
             {
                 ws::rectangle_t xr;
                 xr.nLeft    = 0;
                 xr.nTop     = 0;
                 xr.nWidth   = sSize.nWidth;
                 xr.nHeight  = sSize.nHeight;
-                render(s, &xr, flags);
+                render(bs, &xr, flags);
             }
+            bs->end();
+
+            s->begin();
+                s->draw(bs, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f);
             s->end();
             commit_redraw();