stbte: removed redundant conditional
This commit is contained in:
parent
e62a54ee0b
commit
6cc48214ac
@ -3398,7 +3398,7 @@ static void stbte__layers(stbte_tilemap *tm, int x0, int y0, int w, int h)
|
|||||||
|
|
||||||
if (tm->has_layer_names) {
|
if (tm->has_layer_names) {
|
||||||
int side = stbte__ui.panel[STBTE__panel_layers].side;
|
int side = stbte__ui.panel[STBTE__panel_layers].side;
|
||||||
xoff = tm->has_layer_names ? stbte__region[side].width - 42 : 20;
|
xoff = stbte__region[side].width - 42;
|
||||||
xoff = (xoff < tm->layername_width + 10 ? xoff : tm->layername_width + 10);
|
xoff = (xoff < tm->layername_width + 10 ? xoff : tm->layername_width + 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user