Corrected Channel A to use its own DIP switch for resolution setting.

This commit is contained in:
Peter Weingartner 2022-05-03 13:41:36 -04:00
parent 82f6864c8d
commit ce1f4b3219
6 changed files with 2439 additions and 2438 deletions

Binary file not shown.

View file

@ -229,8 +229,10 @@ short cmd_sysinfo(short channel, int argc, const char * argv[]) {
sprintf(buffer, "MCP version: v%02u.%02u.%04u\n", cli_sys_info.mcp_version, cli_sys_info.mcp_rev, cli_sys_info.mcp_build);
print(channel, buffer);
sys_txt_get_sizes(0, &text_size, &pixel_size);
sprintf(buffer, "Screen#0 size: %dx%d characters, %dx%d pixels.\n", text_size.width, text_size.height, pixel_size.width, pixel_size.height);
short screen = sys_chan_device(channel);
sys_txt_get_sizes(screen, &text_size, &pixel_size);
sprintf(buffer, "Screen#%d size: %dx%d characters, %dx%d pixels.\n", screen, text_size.width, text_size.height, pixel_size.width, pixel_size.height);
print(channel, buffer);
return 0;

View file

@ -154,10 +154,9 @@ short txt_a2560k_a_set_mode(short mode) {
* @return 0 on success, any other number means the resolution is unsupported
*/
short txt_a2560k_a_set_resolution(short width, short height) {
// If no size specified, set it based on the DIP switch
if ((width == 0) || (height == 0)) {
if ((*VKY3_B_MCR & VKY3_B_HIRES) == 0) {
if ((*VKY3_A_MCR & VKY3_A_HIRES) == 0) {
width = 1024;
height = 768;
} else {

BIN
src/foenixmcp_a2560k.bin Normal file

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -7,6 +7,6 @@
#define VER_MAJOR 0
#define VER_MINOR 53
#define VER_BUILD 4
#define VER_BUILD 7
#endif