Esempio n. 1
0
void a_file__uninit(void)
{
    A_LIST_ITERATE(g_openedFiles, AFile*, f) {
        a_out__warning("You should close %s/%s with a_file_close",
                       f->path, f->name);
        a_file__close(f);
    }
Esempio n. 2
0
void a_fade_screens(int FramesDuration)
{
    if(g_fadePending) {
        a_out__warning("a_fade_screens: fade pending, ignoring");
        return;
    }

    g_framesDuration = FramesDuration;

    updateCachedBuffer(true);

    a_state_push("a__fadeScreens");
    g_fadePending = true;
}
Esempio n. 3
0
void a_fade_toColor(int FramesDuration)
{
    if(g_fadePending) {
        a_out__warning("a_fade_toColor: fade pending, ignoring");
        return;
    }

    g_framesDuration = FramesDuration;
    g_savedColor = a_pixel__state.pixel;

    updateCachedBuffer(false);

    a_state_push("a__fadeToColor");
    g_fadePending = true;
}