Ticket #8141: 8141_mirrored_characters.patch

File 8141_mirrored_characters.patch, 553 bytes (added by David, 12 years ago)

8141_mirrored_characters.patch

  • src/interface/statuslinectrl.cpp

     
    9999        delete m_mdc;
    100100        m_data = wxBitmap(rect.GetWidth(), rect.GetHeight());
    101101        m_mdc = new wxMemoryDC(m_data);
     102        // Use same layout direction as the DC which bitmap is drawn on.
     103        // This avoids problem with mirrored characters on RTL locales.
     104        m_mdc->SetLayoutDirection(dc.GetLayoutDirection());
    102105        refresh = 31;
    103106    }
    104107