mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
display smaller mouseover help if there is too much text
This commit is contained in:
parent
95d7ffee08
commit
ce09e4910e
@ -5933,8 +5933,12 @@ EX void drawscreen() {
|
||||
color_t col = linf[cwt.at->land].color;
|
||||
if(cwt.at->land == laRedRock) col = 0xC00000;
|
||||
if(titlecolor) col = titlecolor;
|
||||
if(nohelp != 1)
|
||||
displayfr(vid.xres/2, vid.fsize, 2, vid.fsize, mouseovers, col, 8);
|
||||
if(nohelp != 1) {
|
||||
int size = vid.fsize;
|
||||
while(size > 3 && textwidth(size, mouseovers) > vid.xres) size--;
|
||||
println(hlog, "mouseovers size changed from ", vid.fsize, " to ", size);
|
||||
displayfr(vid.xres/2, vid.fsize, 2, size, mouseovers, col, 8);
|
||||
}
|
||||
#endif
|
||||
|
||||
drawmessages();
|
||||
|
Loading…
Reference in New Issue
Block a user