xp_comm_proj/cine/imgcache.c
/* routine: DisplayPixmap
 * purpose: Copy pixels from buffer to screen
 */
DisplayPixmap
purpose: Copy pixels from buffer to screen
DisplayPixmap purpose : Copy pixels from buffer to screen
static void DisplayPixmap( CacheInfo *cache, GDview *view, int frame_out )
{
  int width, height;
  GDwinfo *winfo;
  winfo = view->Winfo;
  width = winfo->w;
  height = winfo->h;
#ifdef MSDOS
  SelectObject(cache->hdcMem, cache->pixmaps[frame_out]);
  if( !BitBlt(winfo->hdc, 0, 0, width, height, cache->hdcMem, 0, 0, SRCCOPY) )
    fprintf( stderr, "CacheProcessTrigger: Unable to perform bitblt, err = %d\n", GetLastError() );
#else
  XCopyArea(winfo->disp, (Drawable)cache->pixmaps[frame_out], winfo->window,
	    view->State->draw_gc, 0, 0, width, height, 0, 0);
#endif
  return;
}
static void DisplayPixmap ( CacheInfo * cache , GDview * view , int frame_out ) { int width , height ; GDwinfo * winfo ; winfo = view -> Winfo ; width = winfo -> w ; height = winfo -> h ; #ifdef MSDOS SelectObject ( cache -> hdcMem , cache -> pixmaps [ frame_out ] ) ; if ( ! BitBlt ( winfo -> hdc , 0 , 0 , width , height , cache -> hdcMem , 0 , 0 , SRCCOPY ) ) fprintf ( stderr , " \n " , GetLastError ( ) ) ; #else XCopyArea ( winfo -> disp , ( Drawable ) cache -> pixmaps [ frame_out ] , winfo -> window , view -> State -> draw_gc , 0 , 0 , width , height , 0 , 0 ) ; #endif return ; }
routine: DisplayPixmap
 purpose: Copy pixels from buffer to screen
routine : DisplayPixmap purpose : Copy pixels from buffer to screen