[nostalgia/gfx/studio/tilesheet] Adjust pixel line size on Windows
All checks were successful
Build / build (push) Successful in 1m25s
All checks were successful
Build / build (push) Successful in 1m25s
This commit is contained in:
parent
df2c7e2b67
commit
12bb7475fc
@ -22,7 +22,12 @@ ox::Error TileSheetGrid::buildShader() noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TileSheetGrid::draw(bool update, ox::Vec2 const&scroll) noexcept {
|
void TileSheetGrid::draw(bool update, ox::Vec2 const&scroll) noexcept {
|
||||||
|
// the lines just show up bigger on Windows for some reason
|
||||||
|
if constexpr(ox::defines::OS == ox::OS::Windows) {
|
||||||
|
glLineWidth(3 * m_pixelSizeMod * 0.25f);
|
||||||
|
} else {
|
||||||
glLineWidth(3 * m_pixelSizeMod * 0.5f);
|
glLineWidth(3 * m_pixelSizeMod * 0.5f);
|
||||||
|
}
|
||||||
glUseProgram(m_shader);
|
glUseProgram(m_shader);
|
||||||
glBindVertexArray(m_bufferSet.vao);
|
glBindVertexArray(m_bufferSet.vao);
|
||||||
if (update) {
|
if (update) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user