fixup! feat(core): introduce new drawing library

cepetr/gfx-alpha
cepetr 4 weeks ago
parent acf8932953
commit c53fa0548a

@ -71,16 +71,14 @@ where
fn obj_paint(&mut self) -> bool {
#[cfg(not(feature = "new_rendering"))]
let legacy_mode = true;
#[cfg(feature = "new_rendering")]
let legacy_mode = false;
if legacy_mode {
{
let will_paint = self.inner().will_paint();
self.paint();
will_paint
} else {
}
#[cfg(feature = "new_rendering")]
{
let will_paint = self.inner().will_paint();
if will_paint {
render_on_display(None, Some(Color::black()), |target| {

Loading…
Cancel
Save