[haiku-bugs] Re: [Haiku] #6761: Wrong positioning printing line of words in different colors

  • From: "jackburton" <trac@xxxxxxxxxxxx>
  • Date: Sun, 06 Nov 2016 11:31:25 -0000

#6761: Wrong positioning printing line of words in different colors
----------------------------------+-----------------------
   Reporter:  laplace             |      Owner:  korli
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Servers/app_server  |    Version:  R1/alpha2
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+-----------------------

Comment (by jackburton):

 Replying to [comment:6 pulkomandy]:

Notice that the handling of AS_DRAW_STRING for pictures does NOT update
 the pen location, unlike its direct-drawing counterpart. So, the pen stays
 at the start of the line and never advances with the text.

 It actually updates the pen position, as you can see in here:
 http://cgit.haiku-os.org/haiku/tree/src/servers/app/ServerPicture.cpp#n407

 Although it explicitly says it does not update the pen position within
 DrawingEngine/Painter.
 I seem to recall this worked in the past, so maybe it's a regression after
 some refactoring.
 It already happened once (or twice) in this part of the code.

--
Ticket URL: <https://dev.haiku-os.org/ticket/6761#comment:8>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: