mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-08-08 04:25:59 +00:00
video flags are unsigned long
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user