Browse Source

Fix for the TextLayout when drawing at non-origin coords

tags/2021-05-28
jules 8 years ago
parent
commit
eac4f9112f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_graphics/fonts/juce_TextLayout.cpp

+ 2
- 2
modules/juce_graphics/fonts/juce_TextLayout.cpp View File

@@ -218,8 +218,8 @@ void TextLayout::draw (Graphics& g, Rectangle<float> area) const
auto& context = g.getInternalContext();
auto clip = context.getClipBounds();
auto clipTop = (float) clip.getY();
auto clipBottom = (float) clip.getBottom();
auto clipTop = clip.getY() - origin.y;
auto clipBottom = clip.getBottom() - origin.y;
for (auto* line : lines)
{


Loading…
Cancel
Save