From 3809e2f13bb6642d3a874c24df7d854aa0aea8b5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Sep 2008 21:20:10 +0200 Subject: screen: replaced get_cur_mode_id() with screen_is_visible() Screen code shouldn't know anything about the screen ids (which will be eliminated completely later). Instead of comparing ids, compare the screen_functions pointer. --- src/screen_artist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/screen_artist.c') diff --git a/src/screen_artist.c b/src/screen_artist.c index 23a56d5b4..71b168841 100644 --- a/src/screen_artist.c +++ b/src/screen_artist.c @@ -90,7 +90,7 @@ artist_repaint(void) static void artist_repaint_if_active(void) { - if (get_cur_mode_id() == 2) /* XXX don't use the literal number */ + if (screen_is_visible(&screen_artist)) artist_repaint(); } -- cgit v1.2.3