2006-04-13 20:47:06 +00:00
|
|
|
// Windows DIB/DirectDraw interface layer
|
|
|
|
// for the Build Engine
|
2012-03-12 04:47:04 +00:00
|
|
|
// by Jonathon Fowler (jf@jonof.id.au)
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
#ifndef __build_interface_layer__
|
|
|
|
#define __build_interface_layer__ WIN
|
|
|
|
|
2009-01-09 09:29:17 +00:00
|
|
|
extern int32_t backgroundidle; // set to 1 to tell winlayer to go to idle priority when inactive
|
2009-06-05 20:09:13 +00:00
|
|
|
extern uint32_t maxrefreshfreq;
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2009-01-09 09:29:17 +00:00
|
|
|
extern int32_t glusecds;
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2010-11-23 22:30:27 +00:00
|
|
|
extern char di_disabled;
|
|
|
|
|
2009-01-09 09:29:17 +00:00
|
|
|
int32_t win_gethwnd(void);
|
|
|
|
int32_t win_gethinstance(void);
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2009-01-09 09:29:17 +00:00
|
|
|
void win_allowtaskswitching(int32_t onf);
|
|
|
|
int32_t win_checkinstance(void);
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2012-11-05 02:49:08 +00:00
|
|
|
extern void idle_waitevent_timeout(uint32_t timeout);
|
|
|
|
|
|
|
|
static inline void idle_waitevent(void)
|
|
|
|
{
|
|
|
|
idle_waitevent_timeout(100);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void idle(void)
|
|
|
|
{
|
|
|
|
idle_waitevent();
|
|
|
|
}
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
#include "baselayer.h"
|
|
|
|
|
|
|
|
#else
|
|
|
|
#if (__build_interface_layer__ != WIN)
|
|
|
|
#error "Already using the " __build_interface_layer__ ". Can't now use Windows."
|
|
|
|
#endif
|
|
|
|
#endif // __build_interface_layer__
|
|
|
|
|