ultimatepp/uppsrc/Painter/srcimp.tpp/SubpixelFiller$en-us.tpp
cxl 1fd4a55425 Fixed rounding problem in subpixel rendering
git-svn-id: svn://ultimatepp.org/upp/trunk@899 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-02-23 17:49:45 +00:00

17 lines
No EOL
689 B
C++

topic "";
[ $$0,0#00000000000000000000000000000000:Default]
[H6;0 $$1,0#05600065144404261032431302351956:begin]
[i448;a25;kKO9;2 $$2,0#37138531426314131252341829483370:codeitem]
[l288;2 $$3,0#27521748481378242620020725143825:desc]
[0 $$4,0#96390100711032703541132217272105:end]
[{_}%EN-US
[s1;%- &]
[s2;:SubpixelFiller`:`:Write`(int`):%- [@(0.0.255) void]_[* Write]([@(0.0.255) int]_[*@3 len])
&]
[s3; This function flushes the content of filtered subpixel buffer.&]
[s0; Important note: due to rounding errors during filtering, sometimes
the subpixel value can be 257. This is remedied by using 257
instead of 256 in the pixel blending command.&]
[s0; &]
[s4; &]
[s0; ]