Skip to content

Commit b4bd090

Browse files
committed
Core (LV::Bin): Re-implement.
1 parent 4f8c4ac commit b4bd090

File tree

7 files changed

+270
-557
lines changed

7 files changed

+270
-557
lines changed

libvisual/examples/simple/simple_example.cpp

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@ SimpleExample::SimpleExample ()
7777

7878
SDL_WM_SetCaption (m_actor_name.c_str (), 0);
7979

80-
m_bin.depth_changed ();
81-
8280
m_bin.realize ();
83-
m_bin.sync (false);
81+
m_bin.sync ();
8482

8583
m_bin.use_morph (true);
8684
m_bin.set_morph (m_morph_name);
@@ -126,7 +124,7 @@ void SimpleExample::resize_display (int width, int height)
126124
create_display (width, height, m_bin.get_depth ());
127125

128126
m_bin.set_video (m_screen);
129-
m_bin.sync (false);
127+
m_bin.sync ();
130128
}
131129

132130
void SimpleExample::set_palette (LV::Palette const& pal)
@@ -219,16 +217,5 @@ void SimpleExample::run ()
219217
if (!handle_events ()) {
220218
break;
221219
}
222-
223-
if (m_bin.depth_changed ())
224-
{
225-
int depthflag = m_bin.get_depth ();
226-
VisVideoDepth depth = visual_video_depth_get_highest (depthflag);
227-
228-
create_display (m_screen->get_width (), m_screen->get_height (), depth);
229-
m_bin.set_video (m_screen);
230-
231-
m_bin.sync (true);
232-
}
233220
}
234221
}

0 commit comments

Comments
 (0)