[Scummvm-git-logs] scummvm master -> a33fdd93ec2c0ba725ed5443a437a2495fa6947e
digitall
547637+digitall at users.noreply.github.com
Sat Nov 23 13:01:02 UTC 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a33fdd93ec GLK: MAGNETIC: Further Fixes for AmigaOS4 Compilation
Commit: a33fdd93ec2c0ba725ed5443a437a2495fa6947e
https://github.com/scummvm/scummvm/commit/a33fdd93ec2c0ba725ed5443a437a2495fa6947e
Author: D G Turner (digitall at scummvm.org)
Date: 2019-11-23T12:57:35Z
Commit Message:
GLK: MAGNETIC: Further Fixes for AmigaOS4 Compilation
Changed paths:
engines/glk/magnetic/emu.cpp
engines/glk/magnetic/glk.cpp
diff --git a/engines/glk/magnetic/emu.cpp b/engines/glk/magnetic/emu.cpp
index 6dd0b11..80682d5 100644
--- a/engines/glk/magnetic/emu.cpp
+++ b/engines/glk/magnetic/emu.cpp
@@ -2102,6 +2102,7 @@ type16 Magnetic::show_hints_text(ms_hint *hintsData, type16 index) {
case -4: /* Show parent hint list */
if (hint->parent != 0xffff)
return 0;
+ // fallthrough
default:
if ((input > 0) && (input <= hint->elcount)) {
if (show_hints_text(hintsData, hint->links[input - 1]) == 1)
diff --git a/engines/glk/magnetic/glk.cpp b/engines/glk/magnetic/glk.cpp
index 1c0a366..725f5fd 100644
--- a/engines/glk/magnetic/glk.cpp
+++ b/engines/glk/magnetic/glk.cpp
@@ -738,7 +738,7 @@ void Magnetic::gms_graphics_convert_palette(type16 ms_palette[], gms_gammaref_t
void Magnetic::gms_graphics_position_picture(winid_t glk_window,
int pixel_size, type16 width, type16 height, int *x_offset, int *y_offset) {
- glui32 window_width, window_height;
+ uint window_width, window_height;
assert(glk_window && x_offset && y_offset);
/* Measure the current graphics window dimensions. */
@@ -1630,7 +1630,7 @@ void Magnetic::ms_statuschar(type8 c) {
}
void Magnetic::gms_status_update() {
- glui32 width, height;
+ uint width, height;
int index;
assert(gms_status_window);
@@ -2197,8 +2197,13 @@ void Magnetic::gms_hint_arrange_windows(int requested_lines, glui32 *width, glui
winmethod_Above | winmethod_Fixed,
requested_lines, NULL);
+ uint width_temp, height_temp;
+
/* Measure, and return the size of the hint menu window. */
- glk_window_get_size(gms_hint_menu_window, width, height);
+ glk_window_get_size(gms_hint_menu_window, &width_temp, &height_temp);
+
+ *width = width_temp;
+ *height = height_temp;
/* Clear both the hint menu and the hint text window. */
glk_window_clear(gms_hint_menu_window);
More information about the Scummvm-git-logs
mailing list