summaryrefslogtreecommitdiff
path: root/lib/ultralib/src/io/virepeatline.c
blob: bc9677333dc8c68a7783a8b5b60043033fa6f053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "PR/os_internal.h"
#include "PRinternal/viint.h"

// TODO: this comes from a header
#ident "$Revision: 1.17 $"

void osViRepeatLine(u8 active) {
    register u32 saveMask = __osDisableInt();

    if (active) {
        __osViNext->state |= VI_STATE_REPEATLINE;
    } else {
        __osViNext->state &= ~VI_STATE_REPEATLINE;
    }

    __osRestoreInt(saveMask);
}