mirror of
https://github.com/deadw00d/AROS.git
synced 2025-10-26 21:18:42 +00:00
Add test for LoadView
This commit is contained in:
27
developer/debug/test/graphics/loadview.c
Normal file
27
developer/debug/test/graphics/loadview.c
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
Copyright (C) 2022, The AROS Development Team. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <proto/exec.h>
|
||||
#include <proto/graphics.h>
|
||||
#include <graphics/gfxbase.h>
|
||||
#include <proto/dos.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
struct GfxBase *GfxBase;
|
||||
|
||||
GfxBase = (struct GfxBase *)OpenLibrary("graphics.library", 0L);
|
||||
|
||||
struct View *old = GfxBase->ActiView;
|
||||
|
||||
LoadView(NULL);
|
||||
|
||||
Delay(50);
|
||||
|
||||
LoadView(old);
|
||||
|
||||
CloseLibrary((struct Library *)GfxBase);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -12,6 +12,7 @@ FILES := \
|
||||
gfx \
|
||||
gfxinfo \
|
||||
gfxtest \
|
||||
loadview \
|
||||
obtainpentest \
|
||||
readpixelarray \
|
||||
scalepixelarray \
|
||||
|
||||
Reference in New Issue
Block a user