fix high dpi presets panel size

This commit is contained in:
2019-02-28 09:40:16 +01:00
parent 5575769651
commit d0071de461
2 changed files with 4 additions and 5 deletions

View File

@@ -246,11 +246,8 @@ void NodeStrokePreview::draw_stroke()
const auto& b = m_brush;
float w = m_size.x * App::I.zoom;
float h = m_size.y * App::I.zoom;
m_stroke.m_filter_points = false;
m_stroke.m_max_size = h * .75f;
m_stroke.m_max_size = m_size.y * .75f;
m_stroke.m_camera.fov = Canvas::I->m_cam_fov;
m_stroke.m_camera.rot = Canvas::I->m_cam_rot;
m_stroke.reset(true);
@@ -289,6 +286,8 @@ void NodeStrokePreview::draw_stroke()
float pad = glm::max(glm::min(m_stroke.m_max_size, m_brush->m_tip_size) / 2.f, 10.f);
if (b->m_tip_size_pressure)
pad = 10.f;
float w = m_size.x * App::I.zoom;
float h = m_size.y * App::I.zoom;
std::vector<glm::vec2> kp = {
{ pad, h / 2.f },
{ w / 2.f, 0 },