From 2f81b4bf95ff152eec0e84d097edaff01b2de086 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Mon, 26 Dec 2022 09:56:01 -0500
Subject: [PATCH] Don't force vmem->pixel remapping when saving screen.

This destroys graphics.  Fixes SF bug 94.
---
 src/conio/ciolib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conio/ciolib.c b/src/conio/ciolib.c
index 184209279a..64fd41ad45 100644
--- a/src/conio/ciolib.c
+++ b/src/conio/ciolib.c
@@ -1671,7 +1671,7 @@ CIOLIBEXPORT struct ciolib_screen * ciolib_savescreen(void)
 	}
 
 	if (vmode != -1) {
-		ret->pixels = ciolib_getpixels(0, 0, vparams[vmode].charwidth * vparams[vmode].cols - 1, vparams[vmode].charheight * vparams[vmode].rows - 1, TRUE);
+		ret->pixels = ciolib_getpixels(0, 0, vparams[vmode].xres - 1, vparams[vmode].yres - 1, FALSE);
 	}
 	ciolib_vmem_gettext(1, 1, ret->text_info.screenwidth, ret->text_info.screenheight, ret->vmem);
 	ret->fg_colour = ciolib_fg;
-- 
GitLab