Opened 17 years ago
Closed 17 years ago
#2209 closed bug (fixed)
Input method draws converting strings dirty
Reported by: | shinta | Owned by: | jackburton |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Interface Kit | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | x86 |
Attachments (4)
Change History (13)
by , 17 years ago
comment:1 by , 17 years ago
Cc: | added |
---|
by , 17 years ago
Attachment: | TextView.diff.bad added |
---|
comment:2 by , 17 years ago
by , 17 years ago
Attachment: | TextView.diff added |
---|
comment:4 by , 17 years ago
Owner: | changed from | to
---|
Thanks! I'll assign this to Stefano for review, as he is our BTextView master :-)
comment:5 by , 17 years ago
I have reviewed the patch and it looks fine to me. However, as I understand, all this is supposed to do is fix the bad text anti-aliasing. The patch adds considerable overhead just to be able to use B_OP_COPY text rendering (the only text rendering where the low color of the view is used regardless of the true background of the text). While B_OP_COPY rendering is indeed much faster, the added client-server communication in this patch should completely ruin any speed gains. Therefor, I would vote to keep the original code and simply add a view->SetDrawingMode(B_OP_OVER) before rendering the inputted text in order to make the text blend with the true background. This also makes the code easier to read, understand and extend.
comment:6 by , 17 years ago
Oh, forgot to mention... there are a couple of issues with the patch as is: The drawing view is not used consistently, so with double buffered drawing, it would not work. And the added private function has a typo in it's name.
comment:7 by , 17 years ago
SHINTA, could you have a look at my "Alternative Fix" patch? Does that solve the observed problem as well?
comment:9 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the feedback (was unable to test). Thus fixed in hrev25349.
I think string should be drawn separately (blue/red region) like attached patch. But, the patch has a bug on line breaking.