From abab4784d8affd71ac4f8beb48435c443a6200f5 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 26 Jan 2019 17:07:09 +0200 Subject: [PATCH] If called before display emulation is fully active. --- drawing.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drawing.cpp b/drawing.cpp index 65aa1295..b6e26c01 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -378,6 +378,8 @@ int coord_native_to_amiga_x (int x) int coord_native_to_amiga_y (int y) { + if (!native2amiga_line_map) + return -1; return native2amiga_line_map[y] + thisframe_y_adjust - minfirstline; } -- 2.47.3