Corrected Channel A to use its own DIP switch for resolution setting.
This commit is contained in:
parent
82f6864c8d
commit
ce1f4b3219
Binary file not shown.
|
@ -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;
|
||||
|
|
|
@ -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
BIN
src/foenixmcp_a2560k.bin
Normal file
Binary file not shown.
4866
src/mapfile
4866
src/mapfile
File diff suppressed because it is too large
Load diff
|
@ -7,6 +7,6 @@
|
|||
|
||||
#define VER_MAJOR 0
|
||||
#define VER_MINOR 53
|
||||
#define VER_BUILD 4
|
||||
#define VER_BUILD 7
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue