/[smarc]/smarc/src/smarcgui/src/main.cc
ViewVC logotype

Diff of /smarc/src/smarcgui/src/main.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by misto, Fri Jan 3 01:26:36 2003 UTC revision 1.6 by misto, Fri Jan 3 17:05:45 2003 UTC
# Line 345  void refresh_codelist( void ) Line 345  void refresh_codelist( void )
345    
346          gdk_colormap_alloc_colors( sys, colors, 6, FALSE, TRUE, dummy );          gdk_colormap_alloc_colors( sys, colors, 6, FALSE, TRUE, dummy );
347    
348            
349          gtk_clist_set_background(codelist, vm.get_ppppPC()/4, &(colors[0]) );          gtk_clist_set_background(codelist, vm.get_ppppPC()/4, &(colors[0]) );
350          gtk_clist_set_background(codelist, vm.get_pppPC()/4, &(colors[5]) );          if (vm.is_active(vmachine::WB))
351          gtk_clist_set_background(codelist, vm.get_ppPC()/4, &(colors[4]) );                  gtk_clist_set_background(codelist,
352          gtk_clist_set_background(codelist, vm.get_pPC()/4, &(colors[3]) );                                  vm.get_pppPC()/4, &(colors[5]) );
353          gtk_clist_set_background(codelist, vm.get_PC()/4, &(colors[2]) );          
354          gtk_clist_set_background(codelist, vm.get_nPC()/4, &(colors[1]) );          if (vm.is_active(vmachine::MA))
355                    gtk_clist_set_background(codelist,
356                                    vm.get_ppPC()/4, &(colors[4]) );
357            
358            if (vm.is_active(vmachine::EX))
359                    gtk_clist_set_background(codelist,
360                                    vm.get_pPC()/4, &(colors[3]) );
361    
362            if (vm.is_active(vmachine::ID))
363                    gtk_clist_set_background(codelist,
364                                    vm.get_PC()/4, &(colors[2]) );
365    
366            if (vm.is_active( vmachine::IF ))
367                    gtk_clist_set_background(codelist,
368                                    vm.get_nPC()/4, &(colors[1]) );
369    
370          gtk_clist_moveto( codelist, vm.get_nPC()/4, 0, 0.8, 0);          gtk_clist_moveto( codelist, vm.get_nPC()/4, 0, 0.8, 0);
371  }  }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26