MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Demo_Quiz_ShowScreen

Method Demo_Quiz_ShowScreen

Source/Fodder.cpp:9691–9721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9689}
9690
9691void cFodder::Demo_Quiz_ShowScreen(const char* pFilename) {
9692
9693 Image_FadeOut();
9694
9695 mGraphics->Load_And_Draw_Image(pFilename, 32);
9696 mGraphics->PaletteSet();
9697
9698 mSurface->Save();
9699 mSurface->palette_FadeTowardNew();
9700
9701 for (;; ) {
9702 Video_Sleep();
9703
9704 if (mButtonPressLeft || mPhase_Aborted)
9705 break;
9706
9707 if (mSurface->isPaletteAdjusting())
9708 mSurface->palette_FadeTowardNew();
9709
9710 }
9711
9712 Image_FadeOut();
9713
9714 mGraphics->Load_And_Draw_Image("1.lbm", 32);
9715 mGraphics->PaletteSet();
9716
9717 mSurface->Save();
9718 mSurface->palette_FadeTowardNew();
9719
9720 Menu_Button_Reset();
9721}
9722
9723void cFodder::Demo_Quiz() {
9724 Image_FadeOut();

Callers

nothing calls this directly

Calls 5

SaveMethod · 0.80
palette_FadeTowardNewMethod · 0.80
isPaletteAdjustingMethod · 0.80
Load_And_Draw_ImageMethod · 0.45
PaletteSetMethod · 0.45

Tested by

no test coverage detected