fix high dpi presets panel size
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user