This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 39040 - Editor repaints text limit line down entire height of editor each time a line of text is painting
Summary: Editor repaints text limit line down entire height of editor each time a line...
Status: RESOLVED DUPLICATE of bug 38636
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Roskanin
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-01-21 07:07 UTC by _ tboudreau
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2004-01-21 07:07:50 UTC
(Easiest to see with a graphics debugging tool
like QuartzDebug for the mac - each area that's
repainted flashes yellow).

I had noticed that the text limit line was
sometimes partially hiding characters.  After
watching it in slowed-down debug mode, I know why.
 It goes as follows:
 - Paint one line of text
 - Paint the text limit line from top to bottom
 - Paint another line of text
 - Paint the text limit line from top to bottom
 - Paint another line of text
 - Paint the text limit line from top to bottom

for the whole height of the editor.

Now, drawing lines is a pretty cheap operation,
but editor painting needs to be really fast.  It
seems to me you could probably just draw the once
when the rest of the paint is completed, or before
the text painting starts.
Comment 1 Martin Roskanin 2004-01-23 14:15:35 UTC
we should fix it to NB 3.6
as well as issue #38636
Comment 2 _ tboudreau 2004-01-23 14:39:48 UTC
Probably they are the same issue.
Comment 3 Martin Roskanin 2004-01-23 14:52:14 UTC
Yes, I believe that one fix will solve both issues at once. I thought
that this issue tracks multiple painting of text limit line from top
to bottom. So I didn't make duplicate.
Comment 4 _ tboudreau 2004-01-23 15:05:48 UTC
Yes, it does - but that's probably why it's painting over some
characters - it repaints over the preceding line's text when it paints
the next line.
Comment 5 Martin Roskanin 2004-01-23 15:22:10 UTC
Yes, it is probably the reason.
I didn't want to forget this info, so I leaved this issue opened...
Now, I have copied your comment to issue #38636.
I am going to make this duplicate of that. And we have got less bugs
now ;-)

*** This issue has been marked as a duplicate of 38636 ***