mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 22:34:12 +08:00
试试去掉console的关联
This commit is contained in:
parent
268a0f117e
commit
1213d9b5e8
@ -1,7 +1,6 @@
|
|||||||
#include "arm11/atp.h"
|
#include "arm11/atp.h"
|
||||||
#include "arm11/acf.h"
|
#include "arm11/acf.h"
|
||||||
#include "arm11/fmt.h"
|
#include "arm11/fmt.h"
|
||||||
#include "arm11/console.h"
|
|
||||||
#include "arm11/drivers/hid.h"
|
#include "arm11/drivers/hid.h"
|
||||||
#include "drivers/gfx.h"
|
#include "drivers/gfx.h"
|
||||||
|
|
||||||
@ -31,7 +30,7 @@ static void set_screen_color( acf_callerdata_t data, acf_position_t tx, acf_posi
|
|||||||
if( b == 0 ) return;
|
if( b == 0 ) return;
|
||||||
|
|
||||||
int *draw_data = data;
|
int *draw_data = data;
|
||||||
u16 *frame = consoleGet()->frameBuffer;
|
u16 *frame = GFX_getFramebuffer(SCREEN_BOT);
|
||||||
|
|
||||||
int x = tx + draw_data[0];
|
int x = tx + draw_data[0];
|
||||||
int y = ty + draw_data[1];
|
int y = ty + draw_data[1];
|
||||||
|
@ -53,7 +53,7 @@ int main(void)
|
|||||||
if(res == RES_OK) res = oafParseConfigEarly();
|
if(res == RES_OK) res = oafParseConfigEarly();
|
||||||
GFX_init(GFX_BGR8, GFX_RGB565);
|
GFX_init(GFX_BGR8, GFX_RGB565);
|
||||||
setBacklight();
|
setBacklight();
|
||||||
consoleInit(SCREEN_BOT, NULL);
|
//consoleInit(SCREEN_BOT, NULL);
|
||||||
//CODEC_init();
|
//CODEC_init();
|
||||||
|
|
||||||
if(res == RES_OK && (res = oafInitAndRun()) == RES_OK)
|
if(res == RES_OK && (res = oafInitAndRun()) == RES_OK)
|
||||||
|
@ -911,7 +911,6 @@ Result oafInitAndRun(void)
|
|||||||
const KHandle frameReadyEvent = createEvent(false);
|
const KHandle frameReadyEvent = createEvent(false);
|
||||||
LGYFB_init(frameReadyEvent, g_oafConfig.scaler); // 这里把GBA的输出转换成0x18200000处512x512大小的纹理
|
LGYFB_init(frameReadyEvent, g_oafConfig.scaler); // 这里把GBA的输出转换成0x18200000处512x512大小的纹理
|
||||||
patchGbaGpuCmdList(g_oafConfig.scaler);
|
patchGbaGpuCmdList(g_oafConfig.scaler);
|
||||||
if( g_oafConfig.scaler == 0 ) GFX_setDoubleBuffering(SCREEN_BOT, true);
|
|
||||||
createTask(0x800, 3, gbaGfxHandler, (void*)frameReadyEvent);
|
createTask(0x800, 3, gbaGfxHandler, (void*)frameReadyEvent);
|
||||||
g_frameReadyEvent = frameReadyEvent;
|
g_frameReadyEvent = frameReadyEvent;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user