mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-09-19 21:32:58 +00:00
34 lines
613 B
C
34 lines
613 B
C
|
#include "wgt.h"
|
||
|
|
||
|
void wsetscreen (block image)
|
||
|
{
|
||
|
if (image == NULL)
|
||
|
{
|
||
|
abuf = fbuf;
|
||
|
WGT_SYS.xres = WGT_SYS.screenwidth;
|
||
|
WGT_SYS.yres = WGT_SYS.screenheight;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
WGT_SYS.xres = wgetblockwidth (image); /* Get virtual screen size */
|
||
|
WGT_SYS.yres = wgetblockheight (image);
|
||
|
image += 2;
|
||
|
abuf = image;
|
||
|
}
|
||
|
tx = 0;
|
||
|
ty = 0;
|
||
|
bx = WGT_SYS.xres - 1;
|
||
|
by = WGT_SYS.yres - 1;
|
||
|
}
|
||
|
|
||
|
void wnormscreen (void)
|
||
|
{
|
||
|
abuf = fbuf;
|
||
|
WGT_SYS.xres = WGT_SYS.screenwidth;
|
||
|
WGT_SYS.yres = WGT_SYS.screenheight;
|
||
|
tx = 0;
|
||
|
ty = 0;
|
||
|
bx = WGT_SYS.xres - 1;
|
||
|
by = WGT_SYS.yres - 1;
|
||
|
}
|