Can anyone tell me how to refresh/repaint this type of function? I have fonts changing colors in some areas but because this is outside 'gr' it won't change unless I manually refresh, like minimize/maximize.
This is from jsplaylist topbar.js
this.setButtons = function () {
var color_txt = g_color_normal_txt;
var color_bg = g_color_normal_bg;
var bt_w = zoom(18, g_dpi);
var bt_h = zoom(18, g_dpi);
// normal close Image
this.close_off = gdi.CreateImage(bt_w, bt_h);
var gb = this.close_off.GetGraphics();
gb.SetSmoothingMode(2);
gb.SetTextRenderingHint(4);
gb.DrawString(String.fromCharCode(209), gdi_font(g_font_wd2.Name, g_font_wd2.Size - g_z6, 0), blendColors(color_bg, color_txt, 0.75), 0, 0, bt_w, bt_h, cc_stringformat);
gb.SetSmoothingMode(0);
this.close_off.ReleaseGraphics(gb);
// hover close Image
this.close_ov = gdi.CreateImage(bt_w, bt_h);
var gb = this.close_ov.GetGraphics();
gb.SetSmoothingMode(2);
gb.SetTextRenderingHint(4);
gb.DrawString(String.fromCharCode(209), gdi_font(g_font_wd2.Name, g_font_wd2.Size - g_z2, 0), color_txt, 0, 0, bt_w, bt_h, cc_stringformat);
gb.SetSmoothingMode(0);
this.close_ov.ReleaseGraphics(gb);
this.button = new button(this.close_off, this.close_ov, this.close_ov);
};