ReactOS  0.4.14-dev-293-g2b39b42
GdiConvertPalette.c File Reference
#include "precomp.h"
Include dependency graph for GdiConvertPalette.c:

Go to the source code of this file.

Functions

HPALETTE WINAPI GdiConvertPalette (HPALETTE)
 
void Test_GdiConvertPalette ()
 
 START_TEST (GdiConvertPalette)
 

Function Documentation

◆ GdiConvertPalette()

HPALETTE WINAPI GdiConvertPalette ( HPALETTE  )

Definition at line 120 of file historic.c.

121 {
122  /* Note Windows 2000/XP/VISTA always returns hpal */
123  return hpal;
124 }

Referenced by Test_GdiConvertPalette().

◆ START_TEST()

START_TEST ( GdiConvertPalette  )

Definition at line 20 of file GdiConvertPalette.c.

21 {
23 }
void Test_GdiConvertPalette()

◆ Test_GdiConvertPalette()

void Test_GdiConvertPalette ( )

Definition at line 12 of file GdiConvertPalette.c.

13 {
14  ok(GdiConvertPalette((HPALETTE)-1) == (HPALETTE)-1, "\n");
15  ok(GdiConvertPalette((HPALETTE)0) == (HPALETTE)0, "\n");
16  ok(GdiConvertPalette((HPALETTE)1) == (HPALETTE)1, "\n");
17  ok(GdiConvertPalette((HPALETTE)2) == (HPALETTE)2, "\n");
18 }
HPALETTE WINAPI GdiConvertPalette(HPALETTE)
Definition: historic.c:120
#define ok(value,...)
Definition: atltest.h:57

Referenced by START_TEST().