none
Display Driver Development with DirectDraw support RRS feed

  • Question

  • Hi all,

    I want to understand the communication between the functionalities of Microsoft DDGPE class and PXP peripheral (for i.MX233 applications processor). DDGPE::DynRotate rotates the screen when DrvEscape gets DRVESC_SETSCREENROTATION message. Our class derived from DDGPE makes it as below. Do GPESurfRotate::SetRotation use the PXP? How does DDGPE communicate with PXP peripheral?

    LONG DDLcdif::DynRotate(int angle)
    {
      GPESurfRotate * pSurf = (GPESurfRotate*) m_pBackgroundSurface;
    
      if (angle == m_iRotate)
        return DISP_CHANGE_SUCCESSFUL;
    
      m_iRotate = angle;
    
      switch(m_iRotate) {
      case DMDO_0:
      case DMDO_180:
        m_nScreenHeight = m_nScreenHeightSave;
        m_nScreenWidth = m_nScreenWidthSave;
        break;
    
      case DMDO_90:
      case DMDO_270:
        m_nScreenHeight = m_nScreenWidthSave;
        m_nScreenWidth = m_nScreenHeightSave;
        break;
      } //switch
    
      m_pMode->width = m_nScreenWidth;
      m_pMode->height = m_nScreenHeight;
    
      pSurf->SetRotation(m_nScreenWidth, m_nScreenHeight, angle);
    
    
      return DISP_CHANGE_SUCCESSFUL;
    } //DynRotate
    
    

    Thanks advance for your clarifications and helps

     

    Best Regards,

    Yasemin

     

     

    Monday, February 28, 2011 2:55 PM