From 227f9487457bff3ea8881aa5d34107802e789430 Mon Sep 17 00:00:00 2001 From: Thomas Cherryhomes Date: Tue, 29 Jan 2019 18:51:50 -0600 Subject: [PATCH] Baud rate back to 57600. Do not paint if mono. Scale characters for 384 and 480 line displays. --- io.c | 2 +- screen.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/io.c b/io.c index d0af100..98b19c6 100755 --- a/io.c +++ b/io.c @@ -31,7 +31,7 @@ void io_init(void) handshake.fInX=0; SerHShake(driverIn,&handshake); - SerReset(driverOut,baud1200+stop10+noParity+data8); + SerReset(driverOut,baud57600+stop10+noParity+data8); serial_buffer=NewPtr(SERIAL_BUFFER_SIZE); if (serial_buffer!=noErr) diff --git a/screen.c b/screen.c index 34528c3..69fd2fe 100644 --- a/screen.c +++ b/screen.c @@ -72,12 +72,14 @@ void screen_init(void) /* Mac Plus sized screen */ windowRect.top=20; windowRect.bottom=windowRect.top+320; + CharHigh=10; } else if (screenRect.bottom < 532) { /* 640x480 screen */ windowRect.top=20; windowRect.bottom=windowRect.top+448; + CharHigh=14; } else { @@ -531,6 +533,10 @@ void screen_paint(padPt* Coord) unsigned char stackentry = 1; unsigned short spanAbove, spanBelow; RGBColor oldColor; + + if (is_mono==1) + return; + GetCPixel(x,y,&oldColor); if ((oldColor.red == current_foreground.red) &&