fix color issues
This commit is contained in:
@@ -118,11 +118,12 @@ namespace nana
|
||||
{
|
||||
graphics & graph;
|
||||
int x, endpos;
|
||||
::nana::color fgcolor;
|
||||
//::nana::color fgcolor; //deprecated
|
||||
unsigned omitted_pixels;
|
||||
nana::unicode_bidi bidi;
|
||||
std::vector<nana::unicode_bidi::entity> reordered;
|
||||
|
||||
/* //deprecated
|
||||
draw_string_omitted(graphics& graph, int x, int endpos, const ::nana::color& fgcolor, bool omitted)
|
||||
: graph(graph), x(x), endpos(endpos), fgcolor(fgcolor)
|
||||
{
|
||||
@@ -132,6 +133,7 @@ namespace nana
|
||||
else
|
||||
this->endpos = x;
|
||||
}
|
||||
*/
|
||||
|
||||
draw_string_omitted(graphics& graph, int x, int endpos, bool omitted)
|
||||
: graph(graph), x(x), endpos(endpos)
|
||||
@@ -169,7 +171,8 @@ namespace nana
|
||||
nana::paint::graphics dum_graph({ r.width, r.height });
|
||||
|
||||
dum_graph.bitblt(r, graph, pos);
|
||||
dum_graph.set_text_color(fgcolor);
|
||||
//dum_graph.set_text_color(fgcolor); //deprecated
|
||||
dum_graph.set_text_color(graph.palette(true));
|
||||
dum_graph.string({}, i.begin, len);
|
||||
|
||||
r.x = pos.x;
|
||||
|
||||
Reference in New Issue
Block a user