Skip to content

switch to maps view 6x4 for big screens#188

Open
cryham wants to merge 2 commits intomgerhardy:masterfrom
cryham:view6x4
Open

switch to maps view 6x4 for big screens#188
cryham wants to merge 2 commits intomgerhardy:masterfrom
cryham:view6x4

Conversation

@cryham
Copy link
Contributor

@cryham cryham commented Mar 29, 2025

Small screen stays like now but for big (on PC) this basically restores what I did in #131, that 6x4 view of maps and campaigns.
I didn't test on other resolutions.

renderImage(t, x, y, colWidth, rowHeight, alpha);
}
}else{
const int marginX = 35, padding = 20, marginXtotal = 2 * marginX + padding;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't use absolute numbers here - this means it works on your current resolution - but not on others

font->printMax(title, colorWhite, fontX, fontY, colWidth);
}
} else { // big 6 x 4
const int marginX = 25, padding = 20, marginXtotal = 2 * marginX + padding;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't use absolute numbers here.

@cryham
Copy link
Contributor Author

cryham commented Apr 5, 2025

Okay it's now relative to colWidth, not fixed.

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

Successfully merging this pull request may close these issues.

2 participants