File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ namespace mod {
7
7
void drawFunctionOnDebugLayer (void (*func)());
8
8
void drawFunctionOnDebugLayerWithOrder (void (*func)(), float order);
9
9
void drawFunctionOn2DLayer (void (*func)());
10
+ void drawFunctionOn2DLayerWithOrder (void (*func)(), float order);
10
11
11
12
void drawMenuWindow ();
12
13
Original file line number Diff line number Diff line change @@ -79,6 +79,15 @@ void drawFunctionOn2DLayer(void (*func)())
79
79
}, reinterpret_cast <void *>(func));
80
80
}
81
81
82
+ void drawFunctionOn2DLayerWithOrder (void (*func)(), float order)
83
+ {
84
+ ttyd::dispdrv::dispEntry (ttyd::dispdrv::CameraId::k2d, 2 , order,
85
+ [](ttyd::dispdrv::CameraId cameraId, void *user)
86
+ {
87
+ reinterpret_cast <void (*)()>(user)();
88
+ }, reinterpret_cast <void *>(func));
89
+ }
90
+
82
91
void drawMenuWindow ()
83
92
{
84
93
uint32_t color = 0x000000F4 ;
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ void displayTitleScreenAndFileSelectScreenInfo()
266
266
{
267
267
// Curtain is not fully displayed
268
268
// Draw the title screen info
269
- drawFunctionOn2DLayer (drawTitleScreenInfo);
269
+ drawFunctionOn2DLayerWithOrder (drawTitleScreenInfo, - 1 . f );
270
270
}
271
271
}
272
272
else if (checkForSpecificSeq (ttyd::seqdrv::SeqIndex::kLoad ))
@@ -277,7 +277,7 @@ void displayTitleScreenAndFileSelectScreenInfo()
277
277
if (SeqMainCheck == 2 )
278
278
{
279
279
// Draw the file select screen info
280
- drawFunctionOn2DLayer (drawFileSelectScreenInfo);
280
+ drawFunctionOn2DLayerWithOrder (drawFileSelectScreenInfo, - 1 . f );
281
281
}
282
282
}
283
283
}
You can’t perform that action at this time.
0 commit comments