mirror of
https://github.com/reactos/reactos.git
synced 2025-04-30 19:19:00 +00:00
[GDI32_APITEST] Add a PCH.
This commit is contained in:
parent
c2bdad2981
commit
aee83c359c
74 changed files with 106 additions and 307 deletions
|
@ -9,10 +9,7 @@
|
||||||
* Captured from firefox, embedded on reactos.org
|
* Captured from firefox, embedded on reactos.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "precomp.h"
|
||||||
#include <apitest.h>
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
typedef struct _fnt_res
|
typedef struct _fnt_res
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include "precomp.h"
|
||||||
#include <apitest.h>
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
#define COUNT 26
|
#define COUNT 26
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
void Test_AddFontResourceExW()
|
void Test_AddFontResourceExW()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
void Test_BeginPath()
|
void Test_BeginPath()
|
||||||
{
|
{
|
||||||
|
|
|
@ -73,10 +73,11 @@ list(APPEND SOURCE
|
||||||
SetWindowExtEx.c
|
SetWindowExtEx.c
|
||||||
SetWorldTransform.c
|
SetWorldTransform.c
|
||||||
init.c
|
init.c
|
||||||
testlist.c)
|
precomp.h)
|
||||||
|
|
||||||
add_executable(gdi32_apitest ${SOURCE} resource.rc)
|
add_executable(gdi32_apitest ${SOURCE} testlist.c resource.rc)
|
||||||
target_link_libraries(gdi32_apitest ${PSEH_LIB} win32ksys)
|
target_link_libraries(gdi32_apitest ${PSEH_LIB} win32ksys)
|
||||||
set_module_type(gdi32_apitest win32cui)
|
set_module_type(gdi32_apitest win32cui)
|
||||||
add_importlibs(gdi32_apitest gdi32 user32 msvcrt kernel32 ntdll)
|
add_importlibs(gdi32_apitest gdi32 user32 msvcrt kernel32 ntdll)
|
||||||
|
add_pch(gdi32_apitest precomp.h SOURCE)
|
||||||
add_rostests_file(TARGET gdi32_apitest)
|
add_rostests_file(TARGET gdi32_apitest)
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
typedef struct _RECT_TEST
|
typedef struct _RECT_TEST
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,11 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
#define DEFAULT_BITMAP 21
|
|
||||||
|
|
||||||
void Test_CreateBitmap_Params()
|
void Test_CreateBitmap_Params()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Magnus Olsen
|
* PROGRAMMERS: Magnus Olsen
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
void Test_CreateBitmapIndirect()
|
void Test_CreateBitmapIndirect()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
void Test_CreateCompatibleDC()
|
void Test_CreateCompatibleDC()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,8 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
|
|
||||||
/* New color use parameter. See support.microsoft.com/kb/kbview/108497 */
|
/* New color use parameter. See support.microsoft.com/kb/kbview/108497 */
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
#define INVALIDFONT "ThisFontDoesNotExist"
|
#define INVALIDFONT "ThisFontDoesNotExist"
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,7 @@
|
||||||
* Katayama Hirofumi MZ
|
* Katayama Hirofumi MZ
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
#define trace_if(val, msg) do { if (!(val)) trace(msg); } while (0)
|
#define trace_if(val, msg) do { if (!(val)) trace(msg); } while (0)
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
|
|
||||||
// FIXME user32
|
// FIXME user32
|
||||||
|
|
||||||
|
@ -204,5 +200,3 @@ START_TEST(CreateIconIndirect)
|
||||||
ok(iconinfo2.hbmColor == NULL, "\n");
|
ok(iconinfo2.hbmColor == NULL, "\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,12 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
#include <include/ntgdityp.h>
|
|
||||||
#include <include/ntgdihdl.h>
|
|
||||||
|
|
||||||
void Test_CreatePen()
|
void Test_CreatePen()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
void Test_CreateRectRgn()
|
void Test_CreateRectRgn()
|
||||||
{
|
{
|
||||||
|
@ -16,4 +16,3 @@ START_TEST(CreateRectRgn)
|
||||||
{
|
{
|
||||||
Test_CreateRectRgn();
|
Test_CreateRectRgn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
void Test_DPtoLP_Params()
|
void Test_DPtoLP_Params()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Magnus Olsen
|
* PROGRAMMERS: Magnus Olsen
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
|
|
||||||
void Test_EngAcquireSemaphore()
|
void Test_EngAcquireSemaphore()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Magnus Olsen
|
* PROGRAMMERS: Magnus Olsen
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
|
|
||||||
void Test_EngCreateSemaphore()
|
void Test_EngCreateSemaphore()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Magnus Olsen
|
* PROGRAMMERS: Magnus Olsen
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
|
|
||||||
void Test_EngDeleteSemaphore()
|
void Test_EngDeleteSemaphore()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Magnus Olsen
|
* PROGRAMMERS: Magnus Olsen
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
|
|
||||||
void Test_EngReleaseSemaphore()
|
void Test_EngReleaseSemaphore()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,12 +5,7 @@
|
||||||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <winnls.h>
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
#include <strsafe.h>
|
|
||||||
|
|
||||||
static BYTE ContextContinue;
|
static BYTE ContextContinue;
|
||||||
static BYTE ContextStop;
|
static BYTE ContextStop;
|
||||||
|
|
|
@ -5,18 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
#define CLIPRGN 1
|
|
||||||
|
|
||||||
#define ok_rect(_prc, _left, _top, _right, _bottom) \
|
|
||||||
ok_int((_prc)->left, _left); \
|
|
||||||
ok_int((_prc)->top, _top); \
|
|
||||||
ok_int((_prc)->right, _right); \
|
|
||||||
ok_int((_prc)->bottom, _bottom); \
|
|
||||||
|
|
||||||
void Test_ExcludeClipRect()
|
void Test_ExcludeClipRect()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,13 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
#include <include/ntgdityp.h>
|
|
||||||
#include <include/ntgdihdl.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#define ok_lasterror(err) \
|
#define ok_lasterror(err) \
|
||||||
ok(GetLastError() == err, "expected last error " #err " but got 0x%lx\n", GetLastError());
|
ok(GetLastError() == err, "expected last error " #err " but got 0x%lx\n", GetLastError());
|
||||||
|
|
|
@ -5,9 +5,8 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <windows.h>
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
|
@ -5,9 +5,8 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
#include <windows.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
HBITMAP WINAPI GdiConvertBitmap(HBITMAP hbm);
|
HBITMAP WINAPI GdiConvertBitmap(HBITMAP hbm);
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
HBRUSH WINAPI GdiConvertBrush(HBRUSH hbr);
|
HBRUSH WINAPI GdiConvertBrush(HBRUSH hbr);
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
HDC WINAPI GdiConvertDC(HDC hdc);
|
HDC WINAPI GdiConvertDC(HDC hdc);
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
HFONT WINAPI GdiConvertFont(HFONT);
|
HFONT WINAPI GdiConvertFont(HFONT);
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
HPALETTE WINAPI GdiConvertPalette(HPALETTE);
|
HPALETTE WINAPI GdiConvertPalette(HPALETTE);
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
HRGN WINAPI GdiConvertRegion(HRGN);
|
HRGN WINAPI GdiConvertRegion(HRGN);
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
BOOL WINAPI GdiDeleteLocalDC(HDC);
|
BOOL WINAPI GdiDeleteLocalDC(HDC);
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
void Test_GdiGetCharDimensions()
|
void Test_GdiGetCharDimensions()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
HBRUSH WINAPI GdiGetLocalBrush(HBRUSH hbr);
|
HBRUSH WINAPI GdiGetLocalBrush(HBRUSH hbr);
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
HDC WINAPI GdiGetLocalDC(HDC);
|
HDC WINAPI GdiGetLocalDC(HDC);
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
BOOL WINAPI GdiReleaseLocalDC(HDC);
|
BOOL WINAPI GdiReleaseLocalDC(HDC);
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
BOOL WINAPI GdiSetAttrs(HDC);
|
BOOL WINAPI GdiSetAttrs(HDC);
|
||||||
|
|
||||||
|
|
|
@ -5,16 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
#define ok_rect(_prc, _left, _top, _right, _bottom) \
|
|
||||||
ok_int((_prc)->left, _left); \
|
|
||||||
ok_int((_prc)->top, _top); \
|
|
||||||
ok_int((_prc)->right, _right); \
|
|
||||||
ok_int((_prc)->bottom, _bottom); \
|
|
||||||
|
|
||||||
void Test_GetClipBox()
|
void Test_GetClipBox()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
void Test_GetClipRgn()
|
void Test_GetClipRgn()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,13 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
#include <include/ntgdityp.h>
|
|
||||||
#include <include/ntgdihdl.h>
|
|
||||||
|
|
||||||
void Test_GetCurrentObject()
|
void Test_GetCurrentObject()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
void Test_GetDIBColorTable()
|
void Test_GetDIBColorTable()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,8 @@
|
||||||
* PURPOSE: Test for GetFontResourceInfoW
|
* PURPOSE: Test for GetFontResourceInfoW
|
||||||
* PROGRAMMERS: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
|
* PROGRAMMERS: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
|
||||||
*/
|
*/
|
||||||
#include <apitest.h>
|
|
||||||
#include <winuser.h>
|
#include "precomp.h"
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winnls.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
/* GetFontResourceInfoW is undocumented */
|
/* GetFontResourceInfoW is undocumented */
|
||||||
BOOL WINAPI GetFontResourceInfoW(LPCWSTR lpFileName, DWORD *pdwBufSize, void* lpBuffer, DWORD dwType);
|
BOOL WINAPI GetFontResourceInfoW(LPCWSTR lpFileName, DWORD *pdwBufSize, void* lpBuffer, DWORD dwType);
|
||||||
|
|
|
@ -5,11 +5,7 @@
|
||||||
* PROGRAMMERS: Ged Murphy
|
* PROGRAMMERS: Ged Murphy
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
#include <strsafe.h>
|
|
||||||
|
|
||||||
|
|
||||||
#define ok_lasterrornotchanged() \
|
#define ok_lasterrornotchanged() \
|
||||||
ok_err(0x12345)
|
ok_err(0x12345)
|
||||||
|
|
|
@ -5,13 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
#include <include/ntgdityp.h>
|
|
||||||
#include <include/ntgdihdl.h>
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Test_General(void)
|
Test_General(void)
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Jérôme Gardou
|
* PROGRAMMERS: Jérôme Gardou
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
void Test_GetPixel_1bpp()
|
void Test_GetPixel_1bpp()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,13 +5,8 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
#define CLIPRGN 1
|
|
||||||
#define METARGN 2
|
#define METARGN 2
|
||||||
#define APIRGN 3
|
#define APIRGN 3
|
||||||
#define SYSRGN 4
|
#define SYSRGN 4
|
||||||
|
|
|
@ -5,15 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
#include <include/ntgdityp.h>
|
|
||||||
#include <include/ntgdihdl.h>
|
|
||||||
|
|
||||||
#define TEST(x) ok(x, #x"\n")
|
|
||||||
#define RTEST(x) ok(x, #x"\n")
|
|
||||||
|
|
||||||
void Test_GetStockObject()
|
void Test_GetStockObject()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,14 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
#define TEST(x) ok(x, #x"\n")
|
|
||||||
#define RTEST(x) ok(x, #x"\n")
|
|
||||||
|
|
||||||
void Test_GetTextExtentExPoint()
|
void Test_GetTextExtentExPoint()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,12 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
#define TEST(x) ok(x, #x"\n")
|
|
||||||
#define RTEST(x) ok(x, #x"\n")
|
|
||||||
|
|
||||||
void Test_GetTextFace()
|
void Test_GetTextFace()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,8 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
|
|
||||||
void Test_MaskBlt_1bpp()
|
void Test_MaskBlt_1bpp()
|
||||||
|
|
|
@ -5,11 +5,9 @@
|
||||||
* PROGRAMMERS: Víctor Martínez Calvo ( victor.martinez@reactos.org )
|
* PROGRAMMERS: Víctor Martínez Calvo ( victor.martinez@reactos.org )
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
#include <wingdi.h>
|
|
||||||
#include <ndk/rtlfuncs.h>
|
|
||||||
#include <strsafe.h>
|
|
||||||
|
|
||||||
|
#include <ndk/rtlfuncs.h>
|
||||||
|
|
||||||
INT
|
INT
|
||||||
APIENTRY
|
APIENTRY
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
#define CLIPRGN 1
|
|
||||||
|
|
||||||
void Test_OffsetClipRgn()
|
void Test_OffsetClipRgn()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
#include <windows.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "init.h"
|
|
||||||
|
|
||||||
void Test_OffsetRgn()
|
void Test_OffsetRgn()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,11 +5,9 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
#include <windows.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "init.h"
|
|
||||||
|
|
||||||
|
#include "init.h"
|
||||||
|
|
||||||
void Test_PaintRgn()
|
void Test_PaintRgn()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
HBITMAP ghbmpTarget;
|
HBITMAP ghbmpTarget;
|
||||||
PULONG gpulTargetBits;
|
PULONG gpulTargetBits;
|
||||||
|
|
|
@ -5,9 +5,8 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include "precomp.h"
|
||||||
#include <wine/test.h>
|
|
||||||
#include <windows.h>
|
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
|
|
||||||
START_TEST(RealizePalette)
|
START_TEST(RealizePalette)
|
||||||
|
@ -19,4 +18,3 @@ START_TEST(RealizePalette)
|
||||||
ok_int(RealizePalette(ghdcDIB32), 0);
|
ok_int(RealizePalette(ghdcDIB32), 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Jérôme Gardou
|
* PROGRAMMERS: Jérôme Gardou
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
void Test_Rectangle(void)
|
void Test_Rectangle(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,17 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winddi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
#include <include/ntgdityp.h>
|
|
||||||
#include <include/ntgdihdl.h>
|
|
||||||
|
|
||||||
#define TEST(x) ok(x, #x"\n")
|
|
||||||
#define RTEST(x) ok(x, #x"\n")
|
|
||||||
|
|
||||||
HDC hdc1, hdc2;
|
HDC hdc1, hdc2;
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org
|
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
#include <winuser.h>
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
START_TEST(SetBoundsRect)
|
START_TEST(SetBoundsRect)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
void Test_Set(ULONG ulLine, HDC hdc, INT x, INT y, LPPOINT ppt, BOOL bExp, DWORD dwErrExp)
|
void Test_Set(ULONG ulLine, HDC hdc, INT x, INT y, LPPOINT ppt, BOOL bExp, DWORD dwErrExp)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
void Test_SetDCPenColor()
|
void Test_SetDCPenColor()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
* PROGRAMMERS: Jérôme Gardou
|
* PROGRAMMERS: Jérôme Gardou
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
|
|
||||||
void Test_SetDIBits()
|
void Test_SetDIBits()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,8 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -5,13 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
#define TEST(x) ok(x, #x"\n")
|
|
||||||
#define RTEST(x) ok(x, #x"\n")
|
|
||||||
|
|
||||||
void Test_SetMapMode()
|
void Test_SetMapMode()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,9 +5,8 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <mmsystem.h>
|
#include <mmsystem.h>
|
||||||
|
|
||||||
static struct
|
static struct
|
||||||
|
|
|
@ -5,12 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
#define TEST(x) ok(x, #x"\n")
|
|
||||||
|
|
||||||
#define NUM_SYSCOLORS 31
|
#define NUM_SYSCOLORS 31
|
||||||
|
|
||||||
|
|
|
@ -5,13 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
#define TEST(x) ok(x, #x"\n")
|
|
||||||
#define RTEST(x) ok(x, #x"\n")
|
|
||||||
|
|
||||||
void Test_SetWindowExtEx()
|
void Test_SetWindowExtEx()
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,10 +5,7 @@
|
||||||
* PROGRAMMERS: Timo Kreuzer
|
* PROGRAMMERS: Timo Kreuzer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <apitest.h>
|
#include "precomp.h"
|
||||||
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
void Test_SetWorldTransform()
|
void Test_SetWorldTransform()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include "precomp.h"
|
||||||
#include <windef.h>
|
|
||||||
#include <wingdi.h>
|
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
|
|
||||||
HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;
|
HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
extern HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;
|
extern HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;
|
||||||
extern HBITMAP ghbmpDIB1, ghbmpDIB4, ghbmpDIB8, ghbmpDIB16, ghbmpDIB24, ghbmpDIB32;
|
extern HBITMAP ghbmpDIB1, ghbmpDIB4, ghbmpDIB8, ghbmpDIB16, ghbmpDIB24, ghbmpDIB32;
|
||||||
|
|
25
modules/rostests/apitests/gdi32/precomp.h
Normal file
25
modules/rostests/apitests/gdi32/precomp.h
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#ifndef _GDI32_APITEST_PRECOMP_H_
|
||||||
|
#define _GDI32_APITEST_PRECOMP_H_
|
||||||
|
|
||||||
|
#include <apitest.h>
|
||||||
|
#include <wingdi.h>
|
||||||
|
#include <winuser.h>
|
||||||
|
#include <winddi.h>
|
||||||
|
#include <winnls.h>
|
||||||
|
#include <include/ntgdityp.h>
|
||||||
|
#include <include/ntgdihdl.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <strsafe.h>
|
||||||
|
|
||||||
|
#define CLIPRGN 1
|
||||||
|
|
||||||
|
#define TEST(x) ok(x, #x"\n")
|
||||||
|
#define RTEST(x) ok(x, #x"\n")
|
||||||
|
|
||||||
|
#define ok_rect(_prc, _left, _top, _right, _bottom) \
|
||||||
|
ok_int((_prc)->left, _left); \
|
||||||
|
ok_int((_prc)->top, _top); \
|
||||||
|
ok_int((_prc)->right, _right); \
|
||||||
|
ok_int((_prc)->bottom, _bottom); \
|
||||||
|
|
||||||
|
#endif /* _GDI32_APITEST_PRECOMP_H_ */
|
Loading…
Reference in a new issue