OpenToonz - An open-source full-featured 2D animation creation software
C
fix colormodel on high dpi monitor (#2330)
shun-iwasawa28ac2a82be17
diff --git a/toonz/sources/toonz/colormodelviewer.cpp b/toonz/sources/toonz/colormodelviewer.cppindex 9ac1d77f1..dd6c463fe 100644--- a/toonz/sources/toonz/colormodelviewer.cpp+++ b/toonz/sources/toonz/colormodelviewer.cpp@@ -260,14 +260,14 @@ void ColorModelViewer::contextMenuEvent(QContextMenuEvent *event) {/*! If left button is pressed recall \b pick() in event pos.*/void ColorModelViewer::mousePressEvent(QMouseEvent *event) {- if (event->button() == Qt::LeftButton) pick(event->pos());+ if (event->button() == Qt::LeftButton) pick(event->pos() * getDevPixRatio());}//-----------------------------------------------------------------------------/*! If left button is moved recall \b pick() in event pos.*/void ColorModelViewer::mouseMoveEvent(QMouseEvent *event) {- if (event->buttons() & Qt::LeftButton) pick(event->pos());+ if (event->buttons() & Qt::LeftButton) pick(event->pos() * getDevPixRatio());}//-----------------------------------------------------------------------------