frame don't draw when control invisible

This commit is contained in:
2025-08-29 11:40:51 -05:00
parent b96e623ac3
commit b3fcfe3122

View File

@@ -434,7 +434,7 @@ bool cControl::triggerFocusHandler(cDialog& dlg, std::string id, bool losing){
}
void cControl::drawFrame(short amt, eFrameStyle frameStyle){
if(frameStyle == FRM_NONE) return;
if(frameStyle == FRM_NONE || !visible) return;
// dk_gray had a 0..65535 component of 12287, and med_gray had a 0..65535 component of 24574
static sf::Color lt_gray = {224,224,224},dk_gray = {48,48,48};
rectangle rect = frame, ul_rect;