mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-28 17:00:19 +00:00
rogueviz::fundamental:: use primes if too many labels
This commit is contained in:
parent
6f06b9fc72
commit
fc12344754
@ -331,7 +331,9 @@ void shapedata::render() {
|
||||
int mc = mirrored[ci] ? sett.color_mirror : sett.color_mirage;
|
||||
int id = connections[ci];
|
||||
if(id == -1) continue;
|
||||
queuestr(labelpos(T * abs_cornerpos[ci], T * abs_cornerpos[ci+1]), sett.label_scale/cgi.scalefactor, s0 + conlabels[id % isize(conlabels)], mc);
|
||||
string lab = s0 + conlabels[id % isize(conlabels)];
|
||||
for(int i=0; i<id / isize(conlabels); i++) lab += "'";
|
||||
queuestr(labelpos(T * abs_cornerpos[ci], T * abs_cornerpos[ci+1]), sett.label_scale/cgi.scalefactor, lab, mc);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user