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

📄 halpalette.cpp

📁 Intel PXA27X Display Driver Windows CE
💻 CPP
字号:
//
// 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.
//
// -----------------------------------------------------------------------------
//
//  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//  ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//
// -----------------------------------------------------------------------------
/* 
** INTEL CONFIDENTIAL
** Copyright 2000-2003 Intel Corporation All Rights Reserved.
**
** The source code contained or described herein and all documents
** related to the source code (Material) are owned by Intel Corporation
** or its suppliers or licensors.  Title to the Material remains with
** Intel Corporation or its suppliers and licensors. The Material contains
** trade secrets and proprietary and confidential information of Intel
** or its suppliers and licensors. The Material is protected by worldwide
** copyright and trade secret laws and treaty provisions. No part of the
** Material may be used, copied, reproduced, modified, published, uploaded,
** posted, transmitted, distributed, or disclosed in any way without Intel抯
** prior express written permission.

** No 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. Any license under such intellectual property rights
** must be express and approved by Intel in writing.
*/
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -