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.
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
* 61 50 52 0F 19 06 19 19 02 0D 0B 0C MONO
|
* 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
|
* 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, <decwiz@yahoo.com>
|
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||||
* Miran Grca, <mgrca8@gmail.com>
|
* Miran Grca, <mgrca8@gmail.com>
|
||||||
@@ -581,13 +581,16 @@ void t3100e_poll(void *p)
|
|||||||
if (t3100e->displine == 400)
|
if (t3100e->displine == 400)
|
||||||
{
|
{
|
||||||
/* Hardcode 640x400 window size */
|
/* 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;
|
xsize = T3100E_XSIZE;
|
||||||
ysize = T3100E_YSIZE;
|
ysize = T3100E_YSIZE;
|
||||||
if (xsize < 64) xsize = 656;
|
if (xsize < 64) xsize = 656;
|
||||||
if (ysize < 32) ysize = 200;
|
if (ysize < 32) ysize = 200;
|
||||||
set_screen_size(xsize, ysize);
|
set_screen_size(xsize, ysize);
|
||||||
|
|
||||||
|
if (video_force_resize_get())
|
||||||
|
video_force_resize_set(0);
|
||||||
}
|
}
|
||||||
video_blit_memtoscreen(0, 0, 0, ysize, xsize, ysize);
|
video_blit_memtoscreen(0, 0, 0, ysize, xsize, ysize);
|
||||||
|
|
||||||
|
@@ -9,15 +9,15 @@
|
|||||||
* Implementation of the Toshiba T1000 plasma display, which
|
* Implementation of the Toshiba T1000 plasma display, which
|
||||||
* has a fixed resolution of 640x200 pixels.
|
* 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, <decwiz@yahoo.com>
|
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||||
* Miran Grca, <mgrca8@gmail.com>
|
* Miran Grca, <mgrca8@gmail.com>
|
||||||
* Sarah Walker, <tommowalker@tommowalker.co.uk>
|
* Sarah Walker, <tommowalker@tommowalker.co.uk>
|
||||||
*
|
*
|
||||||
* Copyright 2018 Fred N. van Kempen.
|
* Copyright 2018,2019 Fred N. van Kempen.
|
||||||
* Copyright 2018 Miran Grca.
|
* Copyright 2018,2019 Miran Grca.
|
||||||
* Copyright 2018 Sarah Walker.
|
* Copyright 2018,2019 Sarah Walker.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* 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)
|
if (t1000->displine == 200)
|
||||||
{
|
{
|
||||||
/* Hardcode 640x200 window size */
|
/* 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;
|
xsize = T1000_XSIZE;
|
||||||
ysize = T1000_YSIZE;
|
ysize = T1000_YSIZE;
|
||||||
if (xsize < 64) xsize = 656;
|
if (xsize < 64) xsize = 656;
|
||||||
if (ysize < 32) ysize = 200;
|
if (ysize < 32) ysize = 200;
|
||||||
set_screen_size(xsize, ysize);
|
set_screen_size(xsize, ysize);
|
||||||
|
|
||||||
|
if (video_force_resize_get())
|
||||||
|
video_force_resize_set(0);
|
||||||
}
|
}
|
||||||
video_blit_memtoscreen(0, 0, 0, ysize, xsize, ysize);
|
video_blit_memtoscreen(0, 0, 0, ysize, xsize, ysize);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user