[haiku-appserver] Re: BView::ClipToPicture

  • From: "DarkWyrm" <bpmagic@xxxxxxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: Tue, 09 Nov 2004 17:53:31 -0500 EST

> > One thing that should happen eventually 
> > is to check the size of the attached data buffer for each message. 
> > All 
> > this should prevent the vast majority of problems.
> 
>       How about speed?
I'm not so sure that the speed hit would be as big as you think, but 
that's something that I can play around with down the road. I have no 
intention of doing anything with it at all in short term. If there's 
any significant performance hit in adding such checks, we can scrap it 
and you won't hear another peep out of me on it. :)
>       IMHO, the best solution is to use a 1bit surface, and draw with a 
> single color (changing the color 
> would not be possible) and disable AA for text rendering.
Perhaps the 32-bit thing is too expensive. The only reason that I was 
considering it was because of AA. I'm still not convinced that going 
without AA is such a great idea. Attached to this e-mail (assuming that 
it isn't filtered out) is a comparison I did. At small point sizes, AA 
makes all the difference in the shape of some characters. I tend to be 
very picky about details on a lot of things, fonts being one of them, 
so I ask you is this something that you gentlemen are willing to live 
with? If you guys are ok with this, I'll live with it. :)

--DW


-- Attached file included as plaintext by Ecartis --

Content-Transfer-Encoding: base64
Content-Disposition: Attachment
Content-Type: image/png; name=fontcompare.png

iVBORw0KGgoAAAANSUhEUgAAAkoAAAFwCAMAAAEH85RrAAABBVBMVEUAAACYmJj///9gYGDo6Oj/
/1D/ywCvewCgoKC3ggBQUFB7e3unp6f//z/S0tL/7CFJOgCSdADbrgC9vb2RkZFmZmbT09O2kQBt
VwAkHQDqtQDY2NiIiIg+Pj65ubmamppdXV0fHx/v7++4uLiCgoL/CjJZWVk3Nzc/Pz89PT1wcHD5
+flAQEBKSkry8vJBQUFERETu7u4rKyvt7e0yMjKWlpZnZ2f6+vq7u7vw8PDr6+tUVFSUlJSbm5uZ
mZkYGBg4ODjs7OxGRkYcHBwpKSlDQ0MsLCwvLy/m5uYXFxfh4eHf399JSUmMjIycnJwwMDBqampT
U1Pn5+dRUVHExMSQkJBzc3NY2S4YAAAACW9GRnMAAAAAAAAAA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6CJQsIlDSRaBkEYGSLgIliwiUdBEoWUSgpItAySICJV0EShYRKOkiULKIQEkXgZJFBEq6CJQs
IlDSRaBkEYGSLgIliwiUdBEoWUSgpItAySICJV0EShYRKOkiULKIQEkXgZJFBEq6CJQsIlDSRaBk
EYGSLgIliwiUdBEoWUSgpItAySICJV0EShYRKOkiULKIQEkXgZJFBEq6CJQsIlDSRaBkEYGSLgIl
iwiUdBEoWcQylE647FA64dKjBA1VihI0FFDSCShZCCjpBJQsBJR0AkoWAko6ASULASWdgJKFYpQc
KFe5KM06Ka4KUVqAijWK0hZUrBGzIAiCIAg6Ifo/YhzbeFnFL6AAAAAASUVORK5CYII=

-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-be_attribute
-- File: BeOS Attributes




Other related posts: