PatchworkOS  10941b4
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/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)
 Initialize and enable the screen logging.
 
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 uint64_t width
 
static uint64_t height
 
static uint64_t pitch
 
static uint64_t stride
 
static char format [MAX_NAME]
 
static voidfrontbuffer
 
static voidbackbuffer
 
static rect_t screenRect
 
static region_t invalidRegion
 

Function Documentation

◆ frontbuffer_init()

static void frontbuffer_init ( void  )
static

Definition at line 25 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 63 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 73 of file screen.c.

Here is the call graph for this function:

◆ screen_deinit()

void screen_deinit ( void  )

Definition at line 88 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 94 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 113 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 136 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 155 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 170 of file screen.c.

Here is the caller graph for this function:

◆ screen_height()

uint64_t screen_height ( void  )

Definition at line 175 of file screen.c.

Here is the caller graph for this function:

◆ screen_rect()

void screen_rect ( rect_t rect)

Definition at line 180 of file screen.c.

Variable Documentation

◆ width

uint64_t width
static

Definition at line 13 of file screen.c.

◆ height

uint64_t height
static

Definition at line 14 of file screen.c.

◆ pitch

uint64_t pitch
static

Definition at line 15 of file screen.c.

◆ stride

uint64_t stride
static

Definition at line 16 of file screen.c.

◆ format

char format[MAX_NAME]
static

Definition at line 17 of file screen.c.

◆ frontbuffer

void* frontbuffer
static

Definition at line 19 of file screen.c.

◆ backbuffer

void* backbuffer
static

Definition at line 20 of file screen.c.

◆ screenRect

rect_t screenRect
static

Definition at line 22 of file screen.c.

◆ invalidRegion

region_t invalidRegion
static

Definition at line 23 of file screen.c.