41 #include <objgfx40/objgfx40.h> 
   47   ogSurface *newBuf = 0x0;
 
   48   ogSurface *oldBuf = (ogSurface *)args->
ptr;
 
   49   ogSurface *screen = 0x0;
 
   92       if (oldBuf->buffer != 0x0) {
 
   93         newBuf = 
new ogSurface();
 
   94         newBuf->version = oldBuf->version;
 
   95         newBuf->buffer = oldBuf->buffer;
 
   96         newBuf->owner = oldBuf->owner;
 
   97         newBuf->lineOfs = oldBuf->lineOfs;
 
   98         newBuf->pal = oldBuf->pal;
 
   99         newBuf->attributes = oldBuf->attributes;
 
  100         newBuf->xRes = oldBuf->xRes;
 
  101         newBuf->yRes = oldBuf->yRes;
 
  102         newBuf->maxX = oldBuf->maxX;
 
  103         newBuf->maxY = oldBuf->maxY;
 
  104         newBuf->bSize = oldBuf->bSize;
 
  105         newBuf->lSize = oldBuf->lSize;
 
  106         newBuf->BPP = oldBuf->BPP;
 
  107         newBuf->bytesPerPix = oldBuf->bytesPerPix;
 
  108         newBuf->pixFmtID = oldBuf->pixFmtID;
 
  109         newBuf->redFieldPosition = oldBuf->redFieldPosition;
 
  110         newBuf->greenFieldPosition = oldBuf->greenFieldPosition;
 
  111         newBuf->blueFieldPosition = oldBuf->blueFieldPosition;
 
  112         newBuf->alphaFieldPosition = oldBuf->alphaFieldPosition;
 
  113         newBuf->redShifter = oldBuf->redShifter;
 
  114         newBuf->greenShifter = oldBuf->greenShifter;
 
  115         newBuf->blueShifter = oldBuf->blueShifter;
 
  116         newBuf->alphaShifter = oldBuf->alphaShifter;
 
  117         newBuf->lastError = oldBuf->lastError;
 
  118         newBuf->dataState = oldBuf->dataState;
 
  139       kprintf(
"Invalid SDE Command [0x%X]\n", args->
ptr);