Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-20581

DrawText ellipsification rendering bug when DT_WORD_ELLIPSIS / DT_PATH_ELLIPSIS is used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • Win32SS

    Description

      reactos-bootcd-0.4.16-dev-2672-g4e01961-x86-gcc-lin-dbg

      Upstream bug in Wine affecting ReactOS: https://bugs.winehq.org/show_bug.cgi?id=59727

      related to CORE-20580

      Sample app code:

      procedure TForm1.Button2Click(Sender: TObject);
      begin
        Image1.Width := 100;
        RenderText;
      end;procedure TForm1.RenderText;
      var
        R :TRect;
      begin
        R := Image1.ClientRect;
        DrawText(Image1.Canvas.Handle, 'ThisisaverylongtextaveryverylongtexttotestDT_WORD_ELLIPSISandDT_PATH_ELLIPSIS', -1, R, DT_WORD_ELLIPSIS or DT_PATH_ELLIPSIS or DT_EXPANDTABS or DT_SINGLELINE);
        Image1.Repaint;
      end; 

      Leads to incorrect ellipsification  with leading "..." (and trailing "...")

      Expected result

      Attachments

        Activity

          People

            Unassigned Unassigned
            KRosUser KRosUser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: