[haiku-bugs] Re: [Haiku] #8895: Artifacts in menu bar when resizing horizontally

  • From: "leavengood" <trac@xxxxxxxxxxxx>
  • Date: Sun, 19 Aug 2012 05:26:06 -0000

#8895: Artifacts in menu bar when resizing horizontally
----------------------------------------+----------------------------
   Reporter:  humdinger                 |      Owner:  leavengood
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  R1
  Component:  Applications/WebPositive  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by leavengood):

 I looked into this and it is definitely specific to the WebPositive menu
 bar. When being resized, the "updateRect" which is passed in
 BMenuBar::Draw can sometimes skip sections, meaning they are never filled
 in. The main thing which is different about WebPositive's menu bar is that
 it is within a horizontal layout group. I started trying to remove the
 menu bar from the layout group to definitely determine if that was the
 problem, but my quick hack changes just crashed Web+. I'll need to take a
 more deliberate approach, maybe even to add another application's menu bar
 to a layout and see if it has the same issues.

 I'll look more into this later, but I suspect the layout code is making
 the resizing slower, and causing the skipping.

 I will say that the only way I could reproduce the really bad artifacts
 like in the screenshot was to make VirtualBox really slow. But I could
 still see occasional single pixel lines at normal speed.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8895#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: