| Line |  | 
|---|
| 1 | /* $Id: palette.cpp,v 1.1 1999-12-01 23:30:30 sandervl Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | /* | 
|---|
| 4 | * GDI32 palette apis | 
|---|
| 5 | * | 
|---|
| 6 | * Based on Wine code (991031) (objects\palette.c) | 
|---|
| 7 | * | 
|---|
| 8 | * Copyright 1993,1994 Alexandre Julliard | 
|---|
| 9 | * Copyright 1996 Alex Korobka | 
|---|
| 10 | * | 
|---|
| 11 | * Project Odin Software License can be found in LICENSE.TXT | 
|---|
| 12 | * | 
|---|
| 13 | */ | 
|---|
| 14 | #include <os2win.h> | 
|---|
| 15 | #include <stdlib.h> | 
|---|
| 16 | #include <misc.h> | 
|---|
| 17 | #include <string.h> | 
|---|
| 18 |  | 
|---|
| 19 | static UINT SystemPaletteUse = SYSPAL_STATIC;  /* currently not considered */ | 
|---|
| 20 |  | 
|---|
| 21 | /*********************************************************************** | 
|---|
| 22 | * SetSystemPaletteUse32 [GDI32.335] | 
|---|
| 23 | * | 
|---|
| 24 | * RETURNS | 
|---|
| 25 | *    Success: Previous system palette | 
|---|
| 26 | *    Failure: SYSPAL_ERROR | 
|---|
| 27 | */ | 
|---|
| 28 | UINT WINAPI SetSystemPaletteUse( | 
|---|
| 29 | HDC hdc,  /* [in] Handle of device context */ | 
|---|
| 30 | UINT use) /* [in] Palette-usage flag */ | 
|---|
| 31 | { | 
|---|
| 32 | UINT old = SystemPaletteUse; | 
|---|
| 33 | dprintf(("SetSystemPaletteUse: (%04x,%04x): stub\n", hdc, use )); | 
|---|
| 34 | SystemPaletteUse = use; | 
|---|
| 35 | return old; | 
|---|
| 36 | } | 
|---|
| 37 | /*********************************************************************** | 
|---|
| 38 | * GetSystemPaletteUse32 [GDI32.223]  Gets state of system palette | 
|---|
| 39 | * | 
|---|
| 40 | * RETURNS | 
|---|
| 41 | *    Current state of system palette | 
|---|
| 42 | */ | 
|---|
| 43 | UINT WINAPI GetSystemPaletteUse(HDC hdc) /* [in] Handle of device context */ | 
|---|
| 44 | { | 
|---|
| 45 | dprintf(("GetSystemPaletteUse %x", hdc)); | 
|---|
| 46 | return SystemPaletteUse; | 
|---|
| 47 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.