Annotation of ntddk/src/video/displays/xga/paths.c, revision 1.1.1.1

1.1       root        1: /******************************Module*Header*******************************\
                      2: * Module Name: paths.c
                      3: *
                      4: * XGA accelerations stubs
                      5: *
                      6: * Copyright (c) 1992 Microsoft Corporation
                      7: *
                      8: \**************************************************************************/
                      9: 
                     10: #include "driver.h"
                     11: 
                     12: 
                     13: /*****************************************************************************
                     14:  * DrvStrokePath
                     15:  ****************************************************************************/
                     16: BOOL DrvStrokePath(
                     17:      SURFOBJ   *pso,
                     18:      PATHOBJ   *ppo,
                     19:      CLIPOBJ   *pco,
                     20:      XFORMOBJ  *pxo,
                     21:      BRUSHOBJ  *pbo,
                     22:      POINTL    *pptlBrushOrg,
                     23:      LINEATTRS *plineattrs,
                     24:      MIX       mix)
                     25: {
                     26: BOOL    b ;
                     27: 
                     28:         // Need to determine which surface is the display.
                     29:         // So we can pickup the address of the XGA coprocessor regs.
                     30: 
                     31:         if ((!pso) || (!(pso->iType == STYPE_DEVICE)))
                     32:         {
                     33:             RIP ("XGA.DLL!DrvStrokePath - surface is not a device surface\n") ;
                     34:             return (TRUE) ;
                     35:         }
                     36: 
                     37:         // Wait for the coprocessor.
                     38: 
                     39:         vWaitForCoProcessor((PPDEV)pso->dhpdev, 100) ;
                     40: 
                     41:          b = EngStrokePath(((PPDEV)(pso->dhpdev))->pSurfObj,
                     42:                            ppo,
                     43:                            pco,
                     44:                            pxo,
                     45:                            pbo,
                     46:                            pptlBrushOrg,
                     47:                            plineattrs,
                     48:                            mix) ;
                     49: 
                     50:         return(b) ;
                     51: }
                     52: 
                     53: 
                     54: 
                     55: 
                     56: /*****************************************************************************
                     57:  * DrvPaint
                     58:  ****************************************************************************/
                     59: BOOL DrvPaint(
                     60:     SURFOBJ  *pso,
                     61:     CLIPOBJ  *pco,
                     62:     BRUSHOBJ *pbo,
                     63:     POINTL   *pptlBrushOrg,
                     64:     MIX      mix)
                     65: {
                     66: BOOL    b ;
                     67: 
                     68:         // Need to determine which surface is the display.
                     69:         // So we can pickup the address of the XGA coprocessor regs.
                     70: 
                     71:         if ((!pso) || (!(pso->iType == STYPE_DEVICE)))
                     72:         {
                     73:             RIP ("XGA.DLL!DrvPaint - surface is not a device surface\n") ;
                     74:             return (TRUE) ;
                     75:         }
                     76: 
                     77:         // Wait for the coprocessor.
                     78: 
                     79:         vWaitForCoProcessor((PPDEV)pso->dhpdev, 100) ;
                     80: 
                     81:         b = EngPaint(((PPDEV)(pso->dhpdev))->pSurfObj,
                     82:                      pco,
                     83:                      pbo,
                     84:                      pptlBrushOrg,
                     85:                      mix) ;
                     86: 
                     87:         return (b) ;
                     88: 
                     89: }
                     90: 
                     91: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.