projects
/
retroray
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e864733
)
handle framebuffer invalidation of windows with frames correctly
author
John Tsiombikas
<nuclear@member.fsf.org>
Mon, 3 Jul 2023 21:18:26 +0000
(
00:18
+0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Mon, 3 Jul 2023 21:18:26 +0000
(
00:18
+0300)
src/rtk.c
patch
|
blob
|
history
diff --git
a/src/rtk.c
b/src/rtk.c
index
fe1c649
..
bc35881
100644
(file)
--- a/
src/rtk.c
+++ b/
src/rtk.c
@@
-941,5
+941,19
@@
void rtk_rect_union(rtk_rect *a, const rtk_rect *b)
static void invalfb(rtk_widget *w)
{
static void invalfb(rtk_widget *w)
{
- app_redisplay(w->any.x, w->any.y, w->any.width, w->any.height);
+ rtk_rect rect;
+
+ rect.x = w->any.x;
+ rect.y = w->any.y;
+ rect.width = w->any.width;
+ rect.height = w->any.height;
+
+ if(w->type == RTK_WIN && (w->any.flags & FRAME)) {
+ rect.x -= WINFRM_SZ;
+ rect.y -= WINFRM_SZ + WINFRM_TBAR;
+ rect.width += WINFRM_SZ * 2;
+ rect.height += WINFRM_SZ * 2 + WINFRM_TBAR;
+ }
+
+ app_redisplay(rect.x, rect.y, rect.width, rect.height);
}
}