mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-05-30 09:22:12 +00:00
in line-broken messages, start with '... ' instead of '...' to make '.' display clearer
This commit is contained in:
+2
-2
@@ -1113,8 +1113,8 @@ EX void drawmessage(const string& s, int& y, color_t col) {
|
||||
}
|
||||
|
||||
for(int i=1; i<isize(s); i++)
|
||||
if(s[i-1] == ' ' && textwidth(vid.fsize, "..."+s.substr(i)) <= space) {
|
||||
displayfr(0, y, 1, vid.fsize, "..."+s.substr(i), col, 0);
|
||||
if(s[i-1] == ' ' && textwidth(vid.fsize, "... "+s.substr(i)) <= space) {
|
||||
displayfr(0, y, 1, vid.fsize, "... "+s.substr(i), col, 0);
|
||||
y -= vid.fsize;
|
||||
drawmessage(s.substr(0, i-1), y, col);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user