1
0
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:
deadwood
2022-01-27 17:26:12 +01:00
parent 7bcb9bcb23
commit 13a8ceafcf
2 changed files with 28 additions and 0 deletions

View 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;
}

View File

@ -12,6 +12,7 @@ FILES := \
gfx \
gfxinfo \
gfxtest \
loadview \
obtainpentest \
readpixelarray \
scalepixelarray \