|
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】odcmcolor bug
odcmcolor bug?
odcmcolor bug?
code:
odcmcolor clr(kbycolor);
clr.setred(243);
clr.setgreen(243);
clr.setblue(274);
clr.setnames("test","this");
pentity->setcolor(clr);
if i use the above code to set a color on an oddbline it renders as if i'd used kbyaci (7). if i call setnames(odstring::kempty); it renders correctly. its as if the rendering code checks to see if there are names and ignores the colormethod portion.
please advise!
sergey,
the oddbcolor entry exists in the oddbdatabase's colordictionary. we explicitly add it. and its not just white that exhibits this behavior...any color appears to use the kbyaci color instead of the kbycolor. it acts as if it calcs the nearest aci color and uses that instead. however, explicitly removing the entry\book names makes it work as expected.
thanks,
tyler edwards
ok... will it be fixed in the next release?
thanks,
tyler edwards
|