video flags are unsigned long

This commit is contained in:
Aaron Culliney
2017-05-14 13:34:06 -10:00
parent 6bfbe3cc88
commit 31aca92ffd
2 changed files with 6 additions and 6 deletions

View File

@@ -1405,15 +1405,15 @@ void video_flashText(void) {
}
}
bool video_isDirty(int flags) {
bool video_isDirty(unsigned long flags) {
return (_vid_dirty & flags);
}
unsigned long video_setDirty(flags) {
unsigned long video_setDirty(unsigned long flags) {
return __sync_fetch_and_or(&_vid_dirty, flags);
}
unsigned long video_clearDirty(flags) {
unsigned long video_clearDirty(unsigned long flags) {
return __sync_fetch_and_and(&_vid_dirty, ~flags);
}

View File

@@ -138,17 +138,17 @@ void video_clear(void);
/*
* True if dirty bit(s) are set for flag(s)
*/
bool video_isDirty(int flags);
bool video_isDirty(unsigned long flags);
/*
* Atomically set dirty bit(s), return previous bit(s) value
*/
unsigned long video_setDirty(int flags);
unsigned long video_setDirty(unsigned long flags);
/*
* Atomically clear dirty bit(s), return previous bit(s) value
*/
unsigned long video_clearDirty(int flags);
unsigned long video_clearDirty(unsigned long flags);
extern bool video_saveState(StateHelper_s *helper);
extern bool video_loadState(StateHelper_s *helper);