Changeset 104
- Timestamp:
- 05/01/07 12:20:32 (2 years ago)
- Files:
-
- trunk/src/cmd4.c (modified) (1 diff)
- trunk/src/files.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/cmd4.c
r100 r104 2479 2479 * - dump(FILE*) needs to emit only the raw data for the dump. 2480 2480 * Comments are generated automatically 2481 * - row is where on the screen to place the prompt2482 2481 */ 2483 2482 static void dump_pref_file(void (*dump)(FILE*), const char *title) trunk/src/files.c
r101 r104 1607 1607 int get_panel(int oid, data_panel *panel, size_t size) 1608 1608 { 1609 int ret = size;1609 size_t ret = size; 1610 1610 switch(oid) 1611 1611 { … … 1681 1681 { "Searching", p_ptr->skill_srh, 6 } 1682 1682 }; 1683 int i; 1683 size_t i; 1684 assert(N_ELEMENTS(skills) == boundaries[4].page_rows); 1684 1685 ret = N_ELEMENTS(skills); 1685 1686 if (ret > size) ret = size; … … 4496 4497 const char *new_color_fmt = (mode == 0) ? 4497 4498 "<font color=\"#%02X%02X%02X\">" 4498 : "[ color=\"#%02X%02X%02X\"]";4499 : "[COLOR=\"#%02X%02X%02X\"]"; 4499 4500 const char *change_color_fmt = (mode == 0) ? 4500 4501 "</font><font color=\"#%02X%02X%02X\">" 4501 : "[/ color][color=\"#%02X%02X%02X\"]";4502 const char *close_color_fmt = mode == 0 ? "</font>" : "[/ color]";4502 : "[/COLOR][COLOR=\"#%02X%02X%02X\"]"; 4503 const char *close_color_fmt = mode == 0 ? "</font>" : "[/COLOR]"; 4503 4504 4504 4505 FILE *htm; … … 4588 4589 } 4589 4590 4591 /* Close the last font-color tag if necessary */ 4592 if (oa != TERM_WHITE) fprintf(htm, close_color_fmt); 4590 4593 if(mode == 0) { 4591 /* Close the last <font> tag if necessary */4592 if (oa != TERM_WHITE) fprintf(htm, "</font>");4593 4594 4594 fprintf(htm, "</tt></pre>\n"); 4595 4595 fprintf(htm, "</body>\n"); … … 4598 4598 else 4599 4599 { 4600 if (oa != TERM_WHITE) fprintf(htm, "[/COLOR]");4601 4600 fprintf(htm, "[/COLOR][/BC][/TT][/CODE]\n"); 4602 4601 }
