halpalette.cpp

来自「该BSP是基于PXA270+WINCE的BSP」· C++ 代码 · 共 91 行

CPP
91
字号
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/* 
** Copyright 2000-2003 Intel Corporation All Rights Reserved.
**
** Portions of the source code contained or described herein and all documents
** related to such source code (Material) are owned by Intel Corporation
** or its suppliers or licensors and is licensed by Microsoft Corporation for distribution.  
** Title to the Material remains with Intel Corporation or its suppliers and licensors. 
** Use of the Materials is subject to the terms of the Microsoft license agreement which accompanied the Materials.  
** No other license under any patent, copyright, trade secret or other intellectual
** property right is granted to or conferred upon you by disclosure or
** delivery of the Materials, either expressly, by implication, inducement,
** estoppel or otherwise 
** Some portion of the Materials may be copyrighted by Microsoft Corporation.
*/
#include "precomp.h"

DWORD WINAPI HalCreatePalette( LPDDHAL_CREATEPALETTEDATA pd )
{
    /*
    typedef struct _DDHAL_CREATEPALETTEDATA
    {
        LPDDRAWI_DIRECTDRAW_GBL     lpDD;           // driver struct
        LPDDRAWI_DDRAWPALETTE_GBL   lpDDPalette;    // ddraw palette struct
        LPPALETTEENTRY              lpColorTable;   // colors to go in palette
        HRESULT                     ddRVal;         // return value
        LPDDHAL_CREATEPALETTE       CreatePalette;  // PRIVATE: ptr to callback
        BOOL                        is_excl;        // process has exclusive mode
    } DDHAL_CREATEPALETTEDATA;
    */

    // Implementation
    pd->ddRVal = DD_OK;

    return DDHAL_DRIVER_HANDLED;
}

//////////////////////////// DDHAL_DDPALETTECALLBACKS ////////////////////////////

DWORD WINAPI HalDestroyPalette( LPDDHAL_DESTROYPALETTEDATA pd )
{
    DEBUGENTER( HalDestroyPalette );
    /*
    typedef struct _DDHAL_DESTROYPALETTEDATA
    {
        LPDDRAWI_DIRECTDRAW_GBL     lpDD;           // driver struct
        LPDDRAWI_DDRAWPALETTE_GBL   lpDDPalette;    // palette struct
        HRESULT                     ddRVal;         // return value
        LPDDHALPALCB_DESTROYPALETTE DestroyPalette; // PRIVATE: ptr to callback
    } DDHAL_DESTROYPALETTEDATA;
    */

    // Implementation
    pd->ddRVal = DD_OK;

    return DDHAL_DRIVER_HANDLED;
}


DWORD WINAPI HalSetEntries( LPDDHAL_SETENTRIESDATA pd )
{
    DEBUGENTER( HalSetEntries );
    /*
    typedef struct _DDHAL_SETENTRIESDATA
    {
        LPDDRAWI_DIRECTDRAW_GBL     lpDD;           // driver struct
        LPDDRAWI_DDRAWPALETTE_GBL   lpDDPalette;    // palette struct
        DWORD                       dwBase;         // base palette index
        DWORD                       dwNumEntries;   // number of palette entries
        LPPALETTEENTRY              lpEntries;      // color table
        HRESULT                     ddRVal;         // return value
        LPDDHALPALCB_SETENTRIES     SetEntries;     // PRIVATE: ptr to callback
    } DDHAL_SETENTRIESDATA;
    */

    // Implementation
    pd->ddRVal = DD_OK;

    return DDHAL_DRIVER_HANDLED;
}

⌨️ 快捷键说明

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