Snippets for alex4 1.1 from FreeBSD 150amd64
Sourced from https://pkg-status.freebsd.org/beefy23/data/latest-per-pkg/alex4/1.1_1/150amd64-default.log.
-
edit.c:72:3: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 72 | textprintf(bmp, data[THE_FONT].dat, 1, 1, 0, "TILE: %d,%d", tx, ty); | ^ -
edit.c:73:3: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 73 | textprintf(bmp, data[THE_FONT].dat, 1, 11, 0, "SIZE: %d,%d", map->width, map->height); | ^ -
edit.c:83:3: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 83 | textprintf(bmp, data[THE_FONT].dat, 1, 111, 4, "EDITING: %s", get_filename(edit_path_and_file)); | ^ -
edit.c:107:3: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 107 | textprintf(bmp, data[THE_FONT].dat, 1, 1, 1, "%s (props)", get_filename(edit_path_and_file)); | ^ -
edit.c:109:3: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 109 | textprintf(bmp, data[THE_FONT].dat, 1, ty+=10, 1, "Win by:"); | ^ -
edit.c:110:3: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 110 | textprintf(bmp, data[THE_FONT].dat, 1, ty+=10, 1, " 1) reach exit (%s)", (map->win_conditions & MAP_WIN_EXIT ? "X" : " ")); | ^ -
edit.c:111:3: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 111 | textprintf(bmp, data[THE_FONT].dat, 1, ty+=10, 1, " 2) kill boss (%s)", (map->win_conditions & MAP_WIN_KILL_GUARDIAN ? "X" : " ")); | ^ -
edit.c:112:3: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 112 | textprintf(bmp, data[THE_FONT].dat, 1, ty+=10, 1, " 3) kill all (%s)", (map->win_conditions & MAP_WIN_KILL_ALL ? "X" : " ")); | ^ -
edit.c:113:3: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 113 | textprintf(bmp, data[THE_FONT].dat, 1, ty+=10, 1, "4) Boss level: (%s)", (map->boss_level ? "X" : " ")); | ^ -
edit.c:114:3: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 114 | textprintf(bmp, data[THE_FONT].dat, 1, ty+=10, 1, "5) Name: %s", map->name); | ^ -
edit.c:116:3: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 116 | textprintf(bmp, data[THE_FONT].dat, 1, 110, 1, "F1: back to editor"); | ^ -
map.c:283:2: warning: 'set_clip' is deprecated [-Wdeprecated-declarations] 283 | set_clip(bmp, dx, dy, dx+w-1, dy+h-1); | ^ -
map.c:333:7: warning: 'textout' is deprecated [-Wdeprecated-declarations] 333 | textout(bmp, font, "D", dx + x*16 + ax, dy + y*16 + ay, 0); | ^ -
map.c:336:7: warning: 'textout' is deprecated [-Wdeprecated-declarations] 336 | textout(bmp, font, "XT", dx + x*16 + ax, dy + y*16 + ay, 255); | ^ -
map.c:339:7: warning: 'textout' is deprecated [-Wdeprecated-declarations] 339 | textout(bmp, font, "GL", dx + x*16 + ax, dy + y*16 + ay, 255); | ^ -
map.c:370:2: warning: 'set_clip' is deprecated [-Wdeprecated-declarations] 370 | set_clip(bmp, 0, 0, SCREEN_W - 1, SCREEN_H - 1); | ^ -
shooter.c:344:4: warning: 'draw_character' is deprecated [-Wdeprecated-declarations] 344 | draw_character(bmp, s_data[o->image].dat, (int)o->x, (int)o->y, 4); | ^ -
shooter.c:382:2: warning: 'textprintf_right' is deprecated [-Wdeprecated-declarations] 382 | textprintf_right(bmp, s_data[SPACE_FONT].dat, x + 160, y + 2, 3, "%s", padding_str); | ^ -
shooter.c:383:19: warning: 'textprintf_right' is deprecated [-Wdeprecated-declarations] 383 | if (s_var.score) textprintf_right(bmp, s_data[SPACE_FONT].dat, x + 160, y + 2, 4, "%s", score_str); | ^ -
shooter.c:1271:3: warning: 'yield_timeslice' is deprecated [-Wdeprecated-declarations] 1271 | yield_timeslice(); | ^ -
hisc.c:150:2: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 150 | textprintf(bmp, fnt, x, y, color, "%s", table->name); | ^ -
hisc.c:151:18: warning: 'textprintf_right' is deprecated [-Wdeprecated-declarations] 151 | if (show_level) textprintf_right(bmp, fnt, x+80, y, color, "%2d", table->level); | ^ -
hisc.c:152:2: warning: 'textprintf_right' is deprecated [-Wdeprecated-declarations] 152 | textprintf_right(bmp, fnt, x+140, y, color, "%d", table->score); | ^ -
script.c:92:3: warning: 'textout' is deprecated [-Wdeprecated-declarations] 92 | textout(bmp, d[THE_FONT].dat, rows[i], x1 + 4, y1 + 5 + i * 9, 1); | ^ -
script.c:106:3: warning: 'yield_timeslice' is deprecated [-Wdeprecated-declarations] 106 | yield_timeslice(); | ^ -
script.c:524:3: warning: 'yield_timeslice' is deprecated [-Wdeprecated-declarations] 524 | yield_timeslice(); | ^ -
main.c:325:23: warning: 'yield_timeslice' is deprecated [-Wdeprecated-declarations] 325 | while(!cycle_count) yield_timeslice(); | ^ -
main.c:499:2: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 499 | textprintf(bmp, data[THE_FONT].dat, 9, y+1, 4, " :%d", player.lives); | ^ -
main.c:505:2: warning: 'textprintf' is deprecated [-Wdeprecated-declarations] 505 | textprintf(bmp, data[THE_FONT].dat, 85, y+1, 4, " :%d", player.ammo); | ^ -
main.c:507:2: warning: 'textprintf_right' is deprecated [-Wdeprecated-declarations] 507 | textprintf_right(bmp, data[THE_FONT].dat, 158, y+1, 4, "%d", player.score); | ^ -
main.c:629:2: warning: 'text_mode' is deprecated [-Wdeprecated-declarations] 629 | text_mode(-1); | ^ -
main.c:638:2: warning: 'set_window_close_button' is deprecated [-Wdeprecated-declarations] 638 | set_window_close_button(FALSE); | ^ -
main.c:704:2: warning: 'textout_centre' is deprecated [-Wdeprecated-declarations] 704 | textout_centre(swap_screen, font, "loading...", 320, 200, 1); | ^ -
main.c:791:2: warning: 'draw_character' is deprecated [-Wdeprecated-declarations] 791 | draw_character(swap_screen, bmp, 80 - bmp->w / 2 + 0, 50 + 1, 1); | ^ -
main.c:792:2: warning: 'draw_character' is deprecated [-Wdeprecated-declarations] 792 | draw_character(swap_screen, bmp, 80 - bmp->w / 2, 50, 4); | ^ -
main.c:1103:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 1103 | textout(bmp, data[THE_FONT].dat, txt, x+1, y, 1); | ^ -
main.c:1104:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 1104 | textout(bmp, data[THE_FONT].dat, txt, x-1, y, 1); | ^ -
main.c:1105:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 1105 | textout(bmp, data[THE_FONT].dat, txt, x, y+1, 1); | ^ -
main.c:1106:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 1106 | textout(bmp, data[THE_FONT].dat, txt, x, y-1, 1); | ^ -
main.c:1107:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 1107 | textout(bmp, data[THE_FONT].dat, txt, x, y, 4); | ^ -
main.c:1156:3: warning: 'yield_timeslice' is deprecated [-Wdeprecated-declarations] 1156 | yield_timeslice(); | ^ -
main.c:1198:3: warning: 'yield_timeslice' is deprecated [-Wdeprecated-declarations] 1198 | yield_timeslice(); | ^ -
main.c:1260:3: warning: 'yield_timeslice' is deprecated [-Wdeprecated-declarations] 1260 | yield_timeslice(); | ^ -
main.c:1376:3: warning: 'yield_timeslice' is deprecated [-Wdeprecated-declarations] 1376 | yield_timeslice(); | ^ -
main.c:1450:2: warning: 'textout_centre' is deprecated [-Wdeprecated-declarations] 1450 | textout_centre(stuff, data[THE_FONT].dat, buf, stuff->w/2 + 1, 1, 2); | ^ -
main.c:1451:2: warning: 'textout_centre' is deprecated [-Wdeprecated-declarations] 1451 | textout_centre(stuff, data[THE_FONT].dat, buf, stuff->w/2, 0, 1); | ^ -
main.c:1454:2: warning: 'textout_centre' is deprecated [-Wdeprecated-declarations] 1454 | textout_centre(bmp, data[THE_FONT].dat, "SELECT START LEVEL", 80, 90, 1); | ^ -
main.c:1455:2: warning: 'textout_centre' is deprecated [-Wdeprecated-declarations] 1455 | textout_centre(bmp, data[THE_FONT].dat, "SELECT START LEVEL", 79, 89, 4); | ^ -
main.c:2346:3: warning: 'yield_timeslice' is deprecated [-Wdeprecated-declarations] 2346 | yield_timeslice(); | ^ -
main.c:2496:3: warning: 'yield_timeslice' is deprecated [-Wdeprecated-declarations] 2496 | yield_timeslice(); | ^ -
main.c:2527:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 2527 | textout(bmp, data[THE_FONT].dat, start_string, x+1, y+1, 1); | ^ -
main.c:2528:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 2528 | textout(bmp, data[THE_FONT].dat, start_string, x, y, 4); | ^ -
main.c:2531:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 2531 | textout(bmp, data[THE_FONT].dat, "HIGH SCORES", x+1, y+1, 1); | ^ -
main.c:2532:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 2532 | textout(bmp, data[THE_FONT].dat, "HIGH SCORES", x, y, 4); | ^ -
main.c:2535:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 2535 | textout(bmp, data[THE_FONT].dat, "EDITOR", x+1, y+1, 1); | ^ -
main.c:2536:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 2536 | textout(bmp, data[THE_FONT].dat, "EDITOR", x, y, 4); | ^ -
main.c:2539:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 2539 | textout(bmp, data[THE_FONT].dat, "QUIT", x+1, y+1, 1); | ^ -
main.c:2540:2: warning: 'textout' is deprecated [-Wdeprecated-declarations] 2540 | textout(bmp, data[THE_FONT].dat, "QUIT", x, y, 4); | ^ -
main.c:2592:9: warning: 'textout' is deprecated [-Wdeprecated-declarations] 2592 | textout(bmp, f, string, pos_x, pos_y, colour); | ^ -
main.c:2769:39: warning: while loop has empty body [-Wempty-body] 2769 | if (key[KEY_1]) { while(key[KEY_1]); switch_gfx_mode(GFX_AUTODETECT_WINDOWED, 160, 120); } | ^ -
main.c:2770:39: warning: while loop has empty body [-Wempty-body] 2770 | if (key[KEY_2]) { while(key[KEY_2]); switch_gfx_mode(GFX_AUTODETECT_WINDOWED, 320, 240); } | ^ -
main.c:2771:39: warning: while loop has empty body [-Wempty-body] 2771 | if (key[KEY_3]) { while(key[KEY_3]); switch_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480); } | ^ -
main.c:2772:39: warning: while loop has empty body [-Wempty-body] 2772 | if (key[KEY_4]) { while(key[KEY_4]); switch_gfx_mode(GFX_AUTODETECT_FULLSCREEN, 640, 480); } | ^ -
main.c:2778:3: warning: 'yield_timeslice' is deprecated [-Wdeprecated-declarations] 2778 | yield_timeslice(); | ^ -
scroller.c:68:3: warning: 'set_clip' is deprecated [-Wdeprecated-declarations] 68 | set_clip(bmp, x, y, x + sc->width, y + sc->height); | ^ -
scroller.c:69:3: warning: 'textout' is deprecated [-Wdeprecated-declarations] 69 | textout(bmp, sc->fnt, sc->text, x + sc->offset + 1, y + 1, 1); | ^ -
scroller.c:70:3: warning: 'textout' is deprecated [-Wdeprecated-declarations] 70 | textout(bmp, sc->fnt, sc->text, x + sc->offset, y, 3); | ^ -
scroller.c:71:3: warning: 'set_clip' is deprecated [-Wdeprecated-declarations] 71 | set_clip(bmp, 0, 0, bmp->w-1, bmp->h-1); | ^ -
scroller.c:77:3: warning: 'set_clip' is deprecated [-Wdeprecated-declarations] 77 | set_clip(bmp, x, y, x + sc->width, y + sc->height); | ^ -
scroller.c:81:6: warning: 'textout_centre' is deprecated [-Wdeprecated-declarations] 81 | textout_centre(bmp, sc->fnt, sc->lines[i], x+(sc->width>>1) , i * sc->font_height + y + sc->offset, -1); | ^ -
scroller.c:83:3: warning: 'set_clip' is deprecated [-Wdeprecated-declarations] 83 | set_clip(bmp, 0, 0, bmp->w-1, bmp->h-1); | ^