⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cspslcdcsurf.cpp

📁 Microsoft WinCE 6.0 BSP FINAL release source code for use with the i.MX27ADS TO2 WCE600_FINAL_MX27_S
💻 CPP
字号:
//------------------------------------------------------------------------------
//
//  Copyright (c) Microsoft Corporation.  All rights reserved.
//
//------------------------------------------------------------------------------
//---------------------------------------------------------------------------
// Copyright (C) 2005-2006, Freescale Semiconductor, Inc. All Rights Reserved.
// THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
// AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT 
//---------------------------------------------------------------------------


//------------------------------------------------------------------------------
//
// File:        SlcdcSurf.cpp
// Purpose:     This file contains functions of SlcdcSurf Class
//
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
// INCLUDE FILES  
//------------------------------------------------------------------------------
#include <windows.h>
#include <winddi.h>
#include <gpe.h>
#include "csp.h"
#include "CSPSlcdcClass.h"

//------------------------------------------------------------------------------
// Constructor of Video surface class SlcdcSurf
//------------------------------------------------------------------------------
SlcdcSurf::SlcdcSurf(int width, int height, int offset, void *pBits, int stride, 
    EGPEFormat format, Node2D *pNode): GPESurf( width, height, pBits, stride, format )
{
    DEBUGMSG(GPE_ZONE_ENTER, (TEXT("++SlcdcSurf::SlcdcSurf\r\n")));

    node_2d = pNode;
    m_fInVideoMemory = TRUE;
    m_nOffsetInVideoMemory = offset;
    DEBUGMSG(GPE_ZONE_ENTER, (TEXT("--SlcdcSurf::SlcdcSurf\r\n")));
}

//------------------------------------------------------------------------------
// Destructor
//------------------------------------------------------------------------------
SlcdcSurf::~SlcdcSurf(void)
{
    DEBUGMSG(GPE_ZONE_ENTER, (TEXT("++SlcdcSurf::~SlcdcSurf\r\n")));
    node_2d->Free();
    DEBUGMSG(GPE_ZONE_ENTER, (TEXT("--SlcdcSurf::~SlcdcSurf\r\n")));
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -