OSDN Git Service

GCU: remove assumed window width of 80 columns in wipe hook
authorEric Branlund <ebranlund@fastmail.com>
Tue, 21 Jun 2022 13:11:45 +0000 (07:11 -0600)
committerEric Branlund <ebranlund@fastmail.com>
Tue, 21 Jun 2022 13:12:22 +0000 (07:12 -0600)
src/main-gcu.cpp

index 1bdf495..3d60796 100644 (file)
@@ -1053,7 +1053,7 @@ static errr game_term_wipe_gcu(int x, int y, int n)
     wmove(td->win, y, x);
 
     /* Clear to end of line */
-    if (x + n >= 80) {
+    if (x + n >= td->t.wid) {
         wclrtoeol(td->win);
     }