- Added some icons.

- Made sure all icon and vbar functions are not the old API functions.
- Removed heartbeat functions from drivers that did standard heartbeat.
This commit is contained in:
robijn
2002-05-23 18:03:36 +00:00
parent 450d05274f
commit dc4c049721
41 changed files with 355 additions and 560 deletions
+10 -3
View File
@@ -297,10 +297,17 @@ drivers_icon( int x, int y, int icon )
report( RPT_INFO, "drivers_icon( x=%d, y=%d, icon=ICON_%s )", x, y, widget_icon_to_iconname (icon) );
ForAllDrivers(drv) {
if( drv->icon )
drv->icon( drv, x, y, icon );
else
/* Does the driver have the icon function ? */
if( drv->icon ) {
/* Try driver call */
if (drv->icon( drv, x, y, icon ) == -1) {
/* do alternative call if driver's function does not know the icon */
driver_alt_icon( drv, x, y, icon );
}
} else {
/* Also do alternative call if the driver does not have icon function */
driver_alt_icon( drv, x, y, icon );
}
}
}