void frm_main::_icons_paint2(Draw& w, int x_offset, int y_offset, bool _render_everything) { rect_f visible = rect_f(scroll.x, scroll.y, GetSize().cx, GetSize().cy); for(auto it = icons_zorder.rbegin(); it != icons_zorder.rend() ; it++) { icon_t* icon = *it; rect_f ricon; ricon = icon->get_bounds(); if(_render_everything || ricon.intersects(visible)) { w.Clip(GetSize()); icon->icon_paint2(w, x_offset, y_offset); w.End(); } } }
Report message to a moderator