enable retina by default because retina disabling was broken in catalina

This commit is contained in:
2019-10-21 11:17:49 +07:00
parent f211c1f287
commit 0ac38ec3e5
9 changed files with 49 additions and 33 deletions

View File

@@ -186,7 +186,7 @@ namespace
the<render>().execute(render::command_block<64>()
.add_command(render::viewport_command(
the<window>().real_size()))
the<window>().framebuffer_size()))
.add_command(render::clear_command()
.color_value({1.f, 0.4f, 0.f, 1.f}))
.add_command(render::draw_command(material_, geometry_)));

View File

@@ -252,7 +252,7 @@ namespace
the<render>().execute(render::command_block<64>()
.add_command(render::viewport_command(
the<window>().real_size()))
the<window>().framebuffer_size()))
.add_command(render::clear_command()
.color_value({1.f, 0.4f, 0.f, 1.f}))
.add_command(render::draw_command(material_, geometry_)));

View File

@@ -231,8 +231,8 @@ namespace
.add_command(render::target_command(nullptr))
.add_command(render::clear_command()
.color_value(color::blue()))
.add_command(render::viewport_command(the<window>().real_size())
.scissor_rect(make_rect(v2u{100u}, the<window>().real_size() - 200u)))
.add_command(render::viewport_command(the<window>().framebuffer_size())
.scissor_rect(make_rect(v2u{100u}, the<window>().framebuffer_size() - 200u)))
.add_command(render::clear_command()
.color_value({1.f, 0.4f, 0.f, 1.f}))
.add_command(render::draw_command(material_, geometry_, rt_props_)));

View File

@@ -47,7 +47,7 @@ namespace
[](const ecs::const_entity&, camera& cam){
if ( !cam.target() ) {
cam.viewport(
the<window>().real_size());
the<window>().framebuffer_size());
cam.projection(math::make_orthogonal_lh_matrix4(
the<window>().real_size().cast_to<f32>(), 0.f, 1000.f));
}

View File

@@ -43,7 +43,7 @@ namespace
[](const ecs::const_entity&, camera& cam){
if ( !cam.target() ) {
cam.viewport(
the<window>().real_size());
the<window>().framebuffer_size());
cam.projection(math::make_orthogonal_lh_matrix4(
the<window>().real_size().cast_to<f32>(), 0.f, 1000.f));
}

View File

@@ -67,7 +67,7 @@ namespace
void frame_render() final {
the<render>().execute(render::command_block<64>()
.add_command(render::viewport_command(
the<window>().real_size()))
the<window>().framebuffer_size()))
.add_command(render::clear_command()
.color_value({1.f, 0.4f, 0.f, 1.f})));
}

View File

@@ -82,7 +82,7 @@ namespace
[](const ecs::const_entity&, camera& cam){
if ( !cam.target() ) {
cam.viewport(
the<window>().real_size());
the<window>().framebuffer_size());
cam.projection(math::make_orthogonal_lh_matrix4(
the<window>().real_size().cast_to<f32>(), 0.f, 1000.f));
}