dedicated.c
changeset 1829 0b6de3b4458a
parent 1794 44f9deff97ed
child 1891 92a3b0aa0946
equal deleted inserted replaced
1828:4035c8aaa3ea 1829:0b6de3b4458a
   165 	free(_dedicated_video_mem);
   165 	free(_dedicated_video_mem);
   166 }
   166 }
   167 
   167 
   168 static void DedicatedVideoMakeDirty(int left, int top, int width, int height) {}
   168 static void DedicatedVideoMakeDirty(int left, int top, int width, int height) {}
   169 static bool DedicatedVideoChangeRes(int w, int h) { return false; }
   169 static bool DedicatedVideoChangeRes(int w, int h) { return false; }
       
   170 static void DedicatedVideoFullScreen(bool fs) {}
   170 
   171 
   171 #if defined(UNIX) || defined(__OS2__)
   172 #if defined(UNIX) || defined(__OS2__)
   172 static bool InputWaiting(void)
   173 static bool InputWaiting(void)
   173 {
   174 {
   174 	struct timeval tv;
   175 	struct timeval tv;
   320 	DedicatedVideoStart,
   321 	DedicatedVideoStart,
   321 	DedicatedVideoStop,
   322 	DedicatedVideoStop,
   322 	DedicatedVideoMakeDirty,
   323 	DedicatedVideoMakeDirty,
   323 	DedicatedVideoMainLoop,
   324 	DedicatedVideoMainLoop,
   324 	DedicatedVideoChangeRes,
   325 	DedicatedVideoChangeRes,
       
   326 	DedicatedVideoFullScreen,
   325 };
   327 };
   326 
   328 
   327 #else
   329 #else
   328 
   330 
   329 static void *_dedicated_video_mem;
   331 static void *_dedicated_video_mem;
   337 
   339 
   338 void DedicatedFork(void) {}
   340 void DedicatedFork(void) {}
   339 static void DedicatedVideoStop(void) { free(_dedicated_video_mem); }
   341 static void DedicatedVideoStop(void) { free(_dedicated_video_mem); }
   340 static void DedicatedVideoMakeDirty(int left, int top, int width, int height) {}
   342 static void DedicatedVideoMakeDirty(int left, int top, int width, int height) {}
   341 static bool DedicatedVideoChangeRes(int w, int h) { return false; }
   343 static bool DedicatedVideoChangeRes(int w, int h) { return false; }
       
   344 static void DedicatedVideoFullScreen(bool fs) {}
   342 static int DedicatedVideoMainLoop(void) { return ML_QUIT; }
   345 static int DedicatedVideoMainLoop(void) { return ML_QUIT; }
   343 
   346 
   344 const HalVideoDriver _dedicated_video_driver = {
   347 const HalVideoDriver _dedicated_video_driver = {
   345 	DedicatedVideoStart,
   348 	DedicatedVideoStart,
   346 	DedicatedVideoStop,
   349 	DedicatedVideoStop,
   347 	DedicatedVideoMakeDirty,
   350 	DedicatedVideoMakeDirty,
   348 	DedicatedVideoMainLoop,
   351 	DedicatedVideoMainLoop,
   349 	DedicatedVideoChangeRes,
   352 	DedicatedVideoChangeRes,
       
   353 	DedicatedVideoFullScreen,
   350 };
   354 };
   351 
   355 
   352 #endif /* ENABLE_NETWORK */
   356 #endif /* ENABLE_NETWORK */