Search
lxdream.org :: lxdream/src/gui/gui.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gui.c
changeset 43:0cf3e339cc59
prev30:89b30313d757
next106:9048bac046c3
author nkeynes
date Mon Dec 26 11:47:15 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Add sh4 + arm breakpoints
Hook up break button in GUI
Enable ARM slice in main loop
file annotate diff log raw
1.1 --- a/src/gui/gui.c Sun Dec 25 05:57:00 2005 +0000
1.2 +++ b/src/gui/gui.c Mon Dec 26 11:47:15 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gui.c,v 1.8 2005-12-25 05:57:00 nkeynes Exp $
1.6 + * $Id: gui.c,v 1.9 2005-12-26 11:47:15 nkeynes Exp $
1.7 *
1.8 * Top-level GUI (GTK2) module.
1.9 *
1.10 @@ -30,6 +30,7 @@
1.11 #define REGISTER_FONT "-*-fixed-medium-r-normal--12-*-*-*-*-*-iso8859-1"
1.12
1.13 GdkColor clrNormal, clrChanged, clrError, clrWarn, clrPC, clrDebug, clrTrace;
1.14 +GdkColor clrBreak, clrTempBreak, clrWhite;
1.15 PangoFontDescription *fixed_list_font;
1.16
1.17 debug_info_t main_debug;
1.18 @@ -69,6 +70,11 @@
1.19 clrTrace.green = 78*256;
1.20 clrTrace.blue = 201*256;
1.21 clrDebug = clrPC;
1.22 + clrBreak.red = 65535;
1.23 + clrBreak.green = clrBreak.blue = 192*256;
1.24 + clrTempBreak.red = clrTempBreak.green = 128*256;
1.25 + clrTempBreak.blue = 32*256;
1.26 + clrWhite.red = clrWhite.green = clrWhite.blue = 65535;
1.27
1.28 map = gdk_colormap_new(gdk_visual_get_best(), TRUE);
1.29 gdk_colormap_alloc_color(map, &clrNormal, TRUE, TRUE);
1.30 @@ -78,6 +84,9 @@
1.31 gdk_colormap_alloc_color(map, &clrPC, TRUE, TRUE);
1.32 gdk_colormap_alloc_color(map, &clrDebug, TRUE, TRUE);
1.33 gdk_colormap_alloc_color(map, &clrTrace, TRUE, TRUE);
1.34 + gdk_colormap_alloc_color(map, &clrBreak, TRUE, TRUE);
1.35 + gdk_colormap_alloc_color(map, &clrTempBreak, TRUE, TRUE);
1.36 + gdk_colormap_alloc_color(map, &clrWhite, TRUE, TRUE);
1.37 fixed_list_font = pango_font_description_from_string("Courier 10");
1.38 debug_win = create_debug_win ();
1.39 main_debug = init_debug_win(debug_win, cpu_descs);
.