Don't create a new texture every time tiling is requested, though sadly this introduces a new issue
This commit is contained in:
@@ -80,7 +80,7 @@ void cButton::draw(){
|
||||
// TODO: How is it supposed to know it's a default button when this fact is stored in the dialog, not the button?
|
||||
if(key.spec && key.k == key_enter) drawFrame(2,frameStyle); // frame default button, to provide a visual cue that it's the default
|
||||
}else{
|
||||
tileImage(*inWindow,frame,bg_gworld,bg[parent->getBg()]);
|
||||
tileImage(*inWindow,frame,bg[parent->getBg()]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ void cLed::draw(){
|
||||
to_rect.left = frame.left + 18; // Possibly could be 20
|
||||
win_draw_string(*inWindow,to_rect,lbl,eTextMode::LEFT_TOP,style);
|
||||
}else{
|
||||
tileImage(*inWindow,frame,bg_gworld,bg[parent->getBg()]);
|
||||
tileImage(*inWindow,frame,bg[parent->getBg()]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user