PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
screen.c File Reference
#include "screen.h"
#include "region.h"
#include "surface.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/fb.h>
#include <sys/io.h>
#include <sys/proc.h>
Include dependency graph for screen.c:

Go to the source code of this file.

Functions

static void frontbuffer_init (void)
 
static void backbuffer_init (void)
 
static void screen_invalidate (const rect_t *rect)
 
void screen_init (void)
 
void screen_deinit (void)
 
void screen_transfer (surface_t *surface, const rect_t *rect)
 
void screen_transfer_blend (surface_t *surface, const rect_t *rect)
 
void screen_transfer_frontbuffer (surface_t *surface, const rect_t *rect)
 
void screen_swap (void)
 
uint64_t screen_width (void)
 
uint64_t screen_height (void)
 
void screen_rect (rect_t *rect)
 

Variables

static fb_info_t info
 
static void * frontbuffer
 
static void * backbuffer
 
static rect_t screenRect
 
static region_t invalidRegion
 

Function Documentation

◆ frontbuffer_init()

static void frontbuffer_init ( void  )
static

Definition at line 21 of file screen.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ backbuffer_init()

static void backbuffer_init ( void  )
static

Definition at line 62 of file screen.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ screen_invalidate()

static void screen_invalidate ( const rect_t rect)
static

Definition at line 72 of file screen.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ screen_init()

void screen_init ( void  )

Definition at line 79 of file screen.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ screen_deinit()

void screen_deinit ( void  )

Definition at line 87 of file screen.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ screen_transfer()

void screen_transfer ( surface_t surface,
const rect_t rect 
)

Definition at line 93 of file screen.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ screen_transfer_blend()

void screen_transfer_blend ( surface_t surface,
const rect_t rect 
)

Definition at line 112 of file screen.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ screen_transfer_frontbuffer()

void screen_transfer_frontbuffer ( surface_t surface,
const rect_t rect 
)

Definition at line 135 of file screen.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ screen_swap()

void screen_swap ( void  )

Definition at line 166 of file screen.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ screen_width()

uint64_t screen_width ( void  )

Definition at line 194 of file screen.c.

Here is the caller graph for this function:

◆ screen_height()

uint64_t screen_height ( void  )

Definition at line 199 of file screen.c.

Here is the caller graph for this function:

◆ screen_rect()

void screen_rect ( rect_t rect)

Definition at line 204 of file screen.c.

Variable Documentation

◆ info

fb_info_t info
static

Definition at line 14 of file screen.c.

◆ frontbuffer

void* frontbuffer
static

Definition at line 15 of file screen.c.

◆ backbuffer

void* backbuffer
static

Definition at line 16 of file screen.c.

◆ screenRect

rect_t screenRect
static

Definition at line 18 of file screen.c.

◆ invalidRegion

region_t invalidRegion
static

Definition at line 19 of file screen.c.