draconisPW / PWMAngband

A free, multi-player roguelike dungeon exploration game based on Angband
35 stars 12 forks source link

Update main-sdl2.c #549

Closed s88100 closed 2 years ago

s88100 commented 2 years ago

_the code in V has been removed, maybe it has something to do with 'int dhrclip, term->dblhhook' ?

render_tile_font_scaled()
Term_mark(col, row - tile_height);
Term_mark(col, row);

https://github.com/angband/angband/blob/master/src/ui-term.c#L241

Another, less efficient way to handle double-height tiles is to use Term_mark() to force a position affected by a double-height tile to be redrawn at the next refresh.

s88100 commented 2 years ago

client/main-sdl.c

/* Dungeon size */
if (win->Term_idx == 0)
    net_term_resize(win->cols, win->rows, win->max_rows);

client/netclient.c check_term_resize() net_term_resize()

/* Save */
Client_setup.settings[SETTING_SCREEN_COLS] = cols;
Client_setup.settings[SETTING_SCREEN_ROWS] = rows;
Client_setup.settings[SETTING_TILE_WID] = tile_width;
Client_setup.settings[SETTING_TILE_HGT] = tile_height;
Client_setup.settings[SETTING_TILE_DISTORTED] = tile_distorted;
Client_setup.settings[SETTING_MAX_HGT] = max_rows;
BlazesRus commented 2 years ago

Spelling is wrong in some of commit change "cannot" to "can't" or "can not"