From 7a485b46a682a409b086fe26b4b625374bed9401 Mon Sep 17 00:00:00 2001 From: ketmar Date: Fri, 22 Oct 2021 16:52:51 +0000 Subject: [PATCH] restored message list scrollbar; also note that OpenGL backend seems to repaint the window each time mouse cursor is moved FossilOrigin-Name: 66582b9a0dbe0c8d9564b680b4d057529ab4dc885dfc48f2a4ef8c2d67272c6f --- chiroptera.d | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/chiroptera.d b/chiroptera.d index 6145be0..ee98e91 100644 --- a/chiroptera.d +++ b/chiroptera.d @@ -2440,17 +2440,17 @@ final class MainPaneWindow : SubWindow { y += gxTextHeightUtf; } ); - /+ - // draw progressbar - { - gxClipRect.x0 = origX0; - gxClipRect.x1 = origX1+5; - gxClipRect.y0 = origY0; - gxClipRect.y1 = origY1; - gxDrawScrollBar(GxRect(gxClipRect.x1-5, gxClipRect.y0, 4, gxClipRect.height-1), cast(int)alist.length-1, idx-1); - } - +/ + // draw progressbar + if (msglistCurrUId) { + gxClipRect.x0 = origX0; + gxClipRect.x1 = origX1+5; + gxClipRect.y0 = origY0; + gxClipRect.y1 = origY1; + gxDrawScrollBar(GxRect(gxClipRect.x1-5, gxClipRect.y0, 4, gxClipRect.height-1), + cast(int)chiroGetTreePaneTableCount()-1, curridx); + } + drawArticle(msglistCurrUId); } @@ -2649,7 +2649,6 @@ void egfxRepaint (SimpleWindow w, immutable bool fromGLHandler=false) { gxClipReset(); gxClearScreen(0); paintSubWindows(); - vglUpdateTexture(); // this does nothing for X11, but required for OpenGL static if (EGfxOpenGLBackend) { @@ -2715,7 +2714,7 @@ void repaintScreen (SimpleWindow w) { if (w !is null && !w.closed && !w.hidden) { static if (EGfxOpenGLBackend) { w.redrawOpenGlSceneNow(); - flushGui(); + //flushGui(); } else { static __gshared bool lastvisible = false; bool curvisible = isConsoleVisible; -- 2.11.4.GIT