Skip to content

Commit 48b9619

Browse files
committed
adding some comments
1 parent 5ed83e7 commit 48b9619

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

components/retro-go/rg_display.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ static const char *SETTING_CUSTOM_ZOOM = "DispCustomZoom";
4040
#include "drivers/display/dummy.h"
4141
#endif
4242

43+
// TODO : make it more user-friendly -> instead of specifying a rect and a surface
44+
// just specify the corner and the dimensions (width and height)
4345
void rg_display_set_osd_surface(rg_surface_t *surface, rg_rect_t rect)
4446
{
4547
// Free the old surface if it exists
@@ -268,6 +270,8 @@ static inline void write_update(const rg_surface_t *update)
268270

269271
lcd_set_window(osd_rect.left + display.screen.margin_left, osd_rect.top + display.screen.margin_top, width, height);
270272

273+
// TODO : find a way to get the background pixels
274+
// TODO : only draw the osd when the "background surface" has changed
271275
for (size_t y = 0; y < height;)
272276
{
273277
uint16_t *lcd_buffer = lcd_get_buffer(LCD_BUFFER_LENGTH);

components/retro-go/rg_system.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static void update_indicators(void)
245245
static void system_monitor_task(void *arg)
246246
{
247247
rg_surface_t *osd = NULL;
248-
if(!app.isLauncher)
248+
if(!app.isLauncher) // not working
249249
{
250250
osd = rg_surface_create(280, 20, RG_PIXEL_565_LE, MEM_SLOW);
251251

0 commit comments

Comments
 (0)