Skip to content

New DebugScreeen implementation (was: "Missing psvDebugScreenClear() function") #50

@windsurfer1122

Description

@windsurfer1122

The sample "prx_loader" uses the function psvDebugScreenClear() which is not defined in any header file or library.
Did this function get lost somewhen? Or can it be added to the Vita SDK for general usage?

On the net I found the following code in different projects (mostly in a file called graphics.c):

void psvDebugScreenClear(int bg_color)
{
	gX = gY = 0;
	int i;
	color_t *pixel = (color_t *)getVramDisplayBuffer();
	for(i = 0; i < SCREEN_WIDTH * SCREEN_HEIGHT; i++) {
		pixel->rgba = bg_color;
		pixel++;
	}
}

[1] https://github.com/dots-tb/rePatch-reDux0/blob/master/rePatchAIDs/graphics.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions