From 6b55436457301e748882936eee55c6fd9664d576 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 1 Oct 2019 15:23:15 +0200 Subject: [PATCH] The Toshiba T1000/T1200 and T3100e polls now respond to window resizes forced by the host, should fix the bug where they did not respond to things like Window scale factor. --- src/machine/m_at_t3100e_vid.c | 7 +++++-- src/machine/m_xt_t1000_vid.c | 13 ++++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/machine/m_at_t3100e_vid.c b/src/machine/m_at_t3100e_vid.c index 6d00413db..683789a20 100644 --- a/src/machine/m_at_t3100e_vid.c +++ b/src/machine/m_at_t3100e_vid.c @@ -22,7 +22,7 @@ * 61 50 52 0F 19 06 19 19 02 0D 0B 0C MONO * 2D 28 22 0A 67 00 64 67 02 03 06 07 640x400 * - * Version: @(#)m_at_t3100e_vid.c 1.0.7 2018/09/19 + * Version: @(#)m_at_t3100e_vid.c 1.0.8 2019/10/01 * * Authors: Fred N. van Kempen, * Miran Grca, @@ -581,13 +581,16 @@ void t3100e_poll(void *p) if (t3100e->displine == 400) { /* Hardcode 640x400 window size */ - if (T3100E_XSIZE != xsize || T3100E_YSIZE != ysize) + if ((T3100E_XSIZE != xsize) || (T3100E_YSIZE != ysize) || video_force_resize_get()) { xsize = T3100E_XSIZE; ysize = T3100E_YSIZE; if (xsize < 64) xsize = 656; if (ysize < 32) ysize = 200; set_screen_size(xsize, ysize); + + if (video_force_resize_get()) + video_force_resize_set(0); } video_blit_memtoscreen(0, 0, 0, ysize, xsize, ysize); diff --git a/src/machine/m_xt_t1000_vid.c b/src/machine/m_xt_t1000_vid.c index 0ee46a8fc..f223a4f43 100644 --- a/src/machine/m_xt_t1000_vid.c +++ b/src/machine/m_xt_t1000_vid.c @@ -9,15 +9,15 @@ * Implementation of the Toshiba T1000 plasma display, which * has a fixed resolution of 640x200 pixels. * - * Version: @(#)m_xt_t1000_vid.c 1.0.10 2018/02/16 + * Version: @(#)m_xt_t1000_vid.c 1.0.11 2019/10/01 * * Authors: Fred N. van Kempen, * Miran Grca, * Sarah Walker, * - * Copyright 2018 Fred N. van Kempen. - * Copyright 2018 Miran Grca. - * Copyright 2018 Sarah Walker. + * Copyright 2018,2019 Fred N. van Kempen. + * Copyright 2018,2019 Miran Grca. + * Copyright 2018,2019 Sarah Walker. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -546,13 +546,16 @@ static void t1000_poll(void *p) if (t1000->displine == 200) { /* Hardcode 640x200 window size */ - if (T1000_XSIZE != xsize || T1000_YSIZE != ysize) + if ((T1000_XSIZE != xsize) || (T1000_YSIZE != ysize) || video_force_resize_get()) { xsize = T1000_XSIZE; ysize = T1000_YSIZE; if (xsize < 64) xsize = 656; if (ysize < 32) ysize = 200; set_screen_size(xsize, ysize); + + if (video_force_resize_get()) + video_force_resize_set(0); } video_blit_memtoscreen(0, 0, 0, ysize, xsize, ysize);