Changeset 17
- Timestamp:
- 03/27/07 14:24:25 (2 years ago)
- Files:
-
- trunk/ChangeLog (deleted)
- trunk/src/cmd4.c (modified) (5 diffs)
- trunk/src/h-system.h (modified) (1 diff)
- trunk/src/ui.h (modified) (1 diff)
- trunk/src/util.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/cmd4.c
r16 r17 2101 2101 { 2102 2102 key_event cx; 2103 cx = menu_select(&menu, opt, n, &cursor_pos, SCREEN );2103 cx = menu_select(&menu, opt, n, &cursor_pos, SCREEN_REGION); 2104 2104 if (ESCAPE == cx.key) break; 2105 2105 if(cx.type == EVT_MOVE) cursor_pos = cx.index; … … 3370 3370 int evt = -1; 3371 3371 Term_clear(); 3372 key = menu_select(&visual_menu, 0, visual_menu.count, &cursor, SCREEN );3372 key = menu_select(&visual_menu, 0, visual_menu.count, &cursor, SCREEN_REGION); 3373 3373 if(key.key == ESCAPE) 3374 3374 break; … … 3551 3551 int evt; 3552 3552 Term_clear(); 3553 key = menu_select(&color_menu, 0, color_menu.count, &cursor, SCREEN );3553 key = menu_select(&color_menu, 0, color_menu.count, &cursor, SCREEN_REGION); 3554 3554 3555 3555 /* Done */ … … 4205 4205 key_event c; 4206 4206 Term_clear(); 4207 c = menu_select(&option_menu, 0, option_menu.count, &cursor, SCREEN );4207 c = menu_select(&option_menu, 0, option_menu.count, &cursor, SCREEN_REGION); 4208 4208 if(ESCAPE == c.key) break; 4209 4209 } … … 4235 4235 key_event c; 4236 4236 Term_clear(); 4237 c = menu_select(&knowledge_menu, 0, knowledge_menu.count, &cursor, SCREEN );4237 c = menu_select(&knowledge_menu, 0, knowledge_menu.count, &cursor, SCREEN_REGION); 4238 4238 if(ESCAPE == c.key) break; 4239 4239 } trunk/src/h-system.h
r16 r17 62 62 #endif 63 63 64 65 #ifdef SET_UID66 67 # ifndef HAVE_USLEEP68 69 /*70 * struct timeval in usleep requires sys/time.h71 *72 * System test removed since Unix systems that neither have usleep nor73 * sys/time.h are screwed anyway, since they have no way of delaying.74 */75 # include <sys/time.h>76 77 # endif /* HAVE_USLEEP */78 79 #endif /* SET_UID */80 81 64 #endif /* INCLUDED_H_SYSTEM_H */ 82 65 trunk/src/ui.h
r16 r17 265 265 266 266 /* This is probably a bad idea */ 267 static const region SCREEN = {0, 0, 0, 0};268 269 270 #endif UI_H271 267 static const region SCREEN_REGION = {0, 0, 0, 0}; 268 269 270 #endif /* UI_H */ 271 trunk/src/util.c
r16 r17 14 14 15 15 #ifdef SET_UID 16 16 17 # ifndef HAVE_USLEEP 18 19 /* 20 * struct timeval (used below) requires sys/time.h. 21 * 22 * Unix systems that neither have usleep nor sys/time.h are screwed, since 23 * they have no way of delaying. 24 */ 25 #include <sys/time.h> 17 26 18 27 /*
