Rev 9436 | Rev 9581 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9436 | Rev 9439 | ||
---|---|---|---|
Line 292... | Line 292... | ||
292 | } |
292 | } |
293 | } |
293 | } |
Line 294... | Line 294... | ||
294 | 294 | ||
295 | void DrawIconWithText(dword _x, _y, _icon, _title) |
295 | void DrawIconWithText(dword _x, _y, _icon, _title) |
296 | { |
- | |
297 | static dword shared_icons_16; |
296 | { |
298 | if (!shared_icons_16) shared_icons_16 = memopen("ICONS18W", NULL, SHM_READ); |
- | |
299 | if (shared_icons_16) { |
- | |
300 | PutPaletteImage(18*18*4*_icon + shared_icons_16, 18, 18,_x, _y, 32, 0); |
- | |
301 | } else { |
- | |
302 | _x -= ICONGAP; |
- | |
303 | } |
297 | if (draw_icon_16w(_x, _y, _icon)) _x += ICONGAP; |
304 | WriteTextWithBg(_x+ICONGAP, _y + 2, 0xD0, sc.work_text, _title, sc.work); |
298 | WriteTextWithBg(_x, _y + 2, 0xD0, sc.work_text, _title, sc.work); |
Line 305... | Line 299... | ||
305 | } |
299 | } |
306 | 300 | ||
307 | dword GetCpuLoad(dword max_h) |
301 | dword GetCpuLoad(dword max_h) |