| version 1.1 | | version 1.2 |
|---|
| | |
| * An icon class. | | * An icon class. |
| * | | * |
| * $Log$ | | * $Log$ |
| * Revision 1.1 1999/06/14 22:14:27 donut | | * Revision 1.2 2003/03/09 06:41:01 donut |
| * Initial revision | | * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned |
| | | * |
| | | * Revision 1.1.1.1 1999/06/14 22:14:27 donut |
| | | * Import of d1x 1.37 source. |
| * | | * |
| * Revision 1.2 1994/11/18 23:07:33 john | | * Revision 1.2 1994/11/18 23:07:33 john |
| * Changed a bunch of shorts to ints. | | * Changed a bunch of shorts to ints. |
| | |
| // Call twice to get original; | | // Call twice to get original; |
| if (f) | | if (f) |
| { | | { |
| icon->flag = (byte)f(); | | icon->flag = (sbyte)f(); |
| icon->flag = (byte)f(); | | icon->flag = (sbyte)f(); |
| } else { | | } else { |
| icon->flag = 0; | | icon->flag = 0; |
| } | | } |
| | |
| if (icon->pressed == 1 || keypress==icon->trap_key ) | | if (icon->pressed == 1 || keypress==icon->trap_key ) |
| { | | { |
| icon->status = 1; | | icon->status = 1; |
| icon->flag = (byte)icon->user_function(); | | icon->flag = (sbyte)icon->user_function(); |
| if (keypress==icon->trap_key) last_keypress = 0; | | if (keypress==icon->trap_key) last_keypress = 0; |
| } | | } |
| | | |