vigetcurrframebuf OK (#386)

* vigetcurrframebuf OK

* Renamed framep to buffer throughout repo

* Made tharo's suggestions

* Fix functions.h
This commit is contained in:
kyleburnette
2021-11-08 07:55:39 -08:00
committed by GitHub
parent 77b9431f11
commit 6b4c24014e
3 changed files with 11 additions and 4 deletions
+8 -1
View File
@@ -1,3 +1,10 @@
#include "global.h"
#pragma GLOBAL_ASM("asm/non_matchings/boot/vigetcurrframebuf/osViGetCurrentFramebuffer.s")
u32* osViGetCurrentFramebuffer(void) {
register u32 prevInt = __osDisableInt();
u32* curBuf = __osViCurr->buffer;
__osRestoreInt(prevInt);
return curBuf;
}