diff --git a/nodes/text/stethoscope_v28.py b/nodes/text/stethoscope_v28.py index 280ca33ed7..167f13c71a 100644 --- a/nodes/text/stethoscope_v28.py +++ b/nodes/text/stethoscope_v28.py @@ -242,13 +242,15 @@ def process(self): # display the __repr__ version of the incoming data processed_data = data + ui_scale = bpy.context.preferences.system.ui_scale + draw_data = { 'tree_name': self.id_data.name[:], 'node_name': self.name[:], 'content': processed_data, 'location': get_xy_for_bgl_drawing, 'color': self.text_color[:], - 'scale' : float(scale), + 'scale' : float(scale*ui_scale), 'mode': self.selected_mode[:], 'font_id': int(self.font_id) } diff --git a/utils/sv_nodeview_draw_helper.py b/utils/sv_nodeview_draw_helper.py index d660be75e4..fda991020e 100644 --- a/utils/sv_nodeview_draw_helper.py +++ b/utils/sv_nodeview_draw_helper.py @@ -19,7 +19,8 @@ def get_xy_for_bgl_drawing(node): # adjust proposed text location in case node is framed. # take into consideration the hidden state _x, _y = node.absolute_location - _x, _y = (_x + node.width + 20), _y + ui_scale = bpy.context.preferences.system.ui_scale + _x, _y = (_x + node.width)*ui_scale + 20, _y*ui_scale # this alters location based on DPI/Scale settings. return _x * node.location_theta, _y * node.location_theta