NS_IMETHODIMP nsRenderingContextPh :: SelectOffScreenDrawingSurface(nsDrawingSurface aSurface) { PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRenderingContextPh::SelectOffScreenDrawingSurface\n"));   if (nsnull==aSurface) mSurface = mOffscreenSurface; else mSurface = (nsDrawingSurfacePh *) aSurface;   mSurface->Select();  PgSetClipping( 0, NULL ); PgSetFillColor(Pg_BLACK); PgDrawIRect( 0, 0, 640,480, Pg_DRAW_FILL_STROKE );  ApplyClipping(mSurface->GetGC()->rid); return NS_OK; }
NS_IMETHODIMP SelectOffScreenDrawingSurface(nsDrawingSurface aSurface) { mSurface = ( nsnull==aSurface ) ? mOffscreenSurface : (nsDrawingSurfacePh *) aSurface; mSurfaceDC = mSurface->Select( ); return NS_OK; }
NS_IMETHODIMP nsRenderingContextPh :: SelectOffScreenDrawingSurface(nsDrawingSurface aSurface){  PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRenderingContextPh::SelectOffScreenDrawingSurface\n"));//  printf ("kedl: surface select: %lu\n",aSurface);  if (nsnull==aSurface)    mSurface = mOffscreenSurface;  else    mSurface = (nsDrawingSurfacePh *) aSurface;//  printf ("kedl2: select pixmap %p\n", ((nsDrawingSurfacePh *)mSurface)->mPixmap);  mSurface->Select();  PgSetClipping( 0, NULL );  PgSetFillColor(Pg_BLACK);  PgDrawIRect( 0, 0, 640,480, Pg_DRAW_FILL_STROKE );  ApplyClipping(mSurface->GetGC()->rid);  return NS_OK;}