mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-10 04:10:39 +00:00
33 lines
613 B
C
33 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;
|
|
}
|