From c7b4314446df15490a5730a09787013a4dab78ee Mon Sep 17 00:00:00 2001 From: ketmar Date: Sun, 17 Sep 2023 06:20:50 +0000 Subject: [PATCH] some updates FossilOrigin-Name: 5380872a6ee3bd4e2fd79607108bc8698e93a67c164fc9e3a76dc1b6267abd8d --- egra/gfx/aggmini/core.d | 2 +- egtui/tty.d | 15 ++++++++++++--- sq3.d | 2 ++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/egra/gfx/aggmini/core.d b/egra/gfx/aggmini/core.d index 5dcc044..b74c539 100644 --- a/egra/gfx/aggmini/core.d +++ b/egra/gfx/aggmini/core.d @@ -927,7 +927,7 @@ private: lineTo(x2, y2); return; } - } if (d3 < tessTol) { + } else if (d3 < tessTol) { lineTo(x3, y3); return; } diff --git a/egtui/tty.d b/egtui/tty.d index 3cc8215..0541fc0 100644 --- a/egtui/tty.d +++ b/egtui/tty.d @@ -135,7 +135,15 @@ __gshared bool winSizeChanged = false; __gshared bool winChSet = false; extern(C) void sigwinchHandler (int sig) { + import core.stdc.stdio : fprintf, fflush, fopen, fclose, FILE; winSizeChanged = true; + version(none) { + FILE *fl = fopen("/home/ketmar/back/D/prj/miri/z_errlog.log", "a"); + if (fl != null) { + fprintf(fl, "WINCH!\n"); + fclose(fl); + } + } } void setupWinch () { @@ -391,11 +399,12 @@ public bool xtNeedReinit () { // this will reset scissors public void xtReinit () { + int nw, nh; + nw = ttyWidth; nh = ttyHeight; ttyzScissor = XtScissor.fullscreen; - if (ttywIntr != ttyWidth || ttyhIntr != ttyHeight) { + if (ttywIntr != nw || ttyhIntr != nh) { winSizeChanged = false; - ttywIntr = ttyWidth; - ttyhIntr = ttyHeight; + ttywIntr = nw; ttyhIntr = nh; ttywb.length = ttywIntr*ttyhIntr; ttybc.length = ttywIntr*ttyhIntr; ttywb[] = Glyph.init; diff --git a/sq3.d b/sq3.d index fd470f9..64f60d7 100644 --- a/sq3.d +++ b/sq3.d @@ -865,6 +865,8 @@ private: this (this) nothrow @trusted @nogc { pragma(inline, true); DBStatement.incrowref(data_____u); } ~this () nothrow @trusted { pragma(inline, true); DBStatement.decrowref(data_____u); } + sqlite3_stmt* getStatementHandle () { return (data_____u ? data____.st : null); } + bool valid_ () pure nothrow @trusted @nogc { pragma(inline, true); return (data_____u && data____.stepIndex > 0 && data____.st !is null); -- 2.11.4.GIT