Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL: always on top flag #37

Open
igroglaz opened this issue Jul 21, 2021 · 4 comments
Open

SDL: always on top flag #37

igroglaz opened this issue Jul 21, 2021 · 4 comments

Comments

@igroglaz
Copy link
Owner

will be fun to be able to make certain windows 'always on top'. Then it will be possible to overlap ui in better way.. cause now when you play - main window will be always on top of others

@s88100
Copy link

s88100 commented Jul 21, 2021

/src/client/main-sdl.c :L987
BringToTop()
/src/client/main-sdl.c :L3983

/* Term 0 is at the top */
Zorder[i] = ANGBAND_TERM_MAX - i - 1;

but Term-0 (Main window) displays 'tiles' on top of windows.

@igroglaz
Copy link
Owner Author

it's fine that Term-0 (Main window) displays 'tiles' on top of windows. With such flag we will put whole window on top which will make everything more beautiful

@s88100
Copy link

s88100 commented Jul 21, 2021

if put window on top, the tiles are updated on top of window.

@s88100
Copy link

s88100 commented Jul 21, 2021

window update
/src/client/main-sdl.c
AcceptChanges()

ResizeWin(&windows[SelectedTerm], windows[SelectedTerm].width, windows[SelectedTerm].height);
sdl_BlitAll();

or

ResizeWin(&windows[0], windows[0].width, windows[0].height);
do_cmd_redraw();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants