|
Rockbox mail archiveSubject: RE: GDB remote debugging rocks!RE: GDB remote debugging rocks!
From: edx <Felix.Arends_at_gmx.de>
Date: Thu, 14 Mar 2002 17:05:49 +0100 > We need a clever way to organise the interface, handle menu > trees etc. We want it to be simple and low-footprint yet > flexible enough to be easily expandable. We also need it to > somehow support both the character display of the JBP and the > bitmap display on the JBR without having to rewrite too much > code for the two types. I had started to write a gdi header and source file... Maybe this might be a solution for the two different types of displays: (part of header file) // internal functions void GDI_InitRec (); void GDI_UpdateRec (); void GDI_SetPixelRec (uint16 x, uint16 y, BOOL bSet); void GDI_InversePixelRec (uint16 x, uint16 y); void GDI_LCD_WriteRec (BOOL bCommand, int nValue); void GDI_LineToRec (uint16 x, uint16 y); void GDI_BitBlt (uchar *lpSrc, int x, int y, uint16 width, uint16 height); // public functions void GDI_DetectController (); void GDI_MoveTo (uint16 x, uint16 y); void GDI_Clear (); void GDI_Rectangle (uint16 x1, uint16 y1, uint16 x2, uint16 y2); extern void (*GDI_Init) (); extern void (*GDI_SetPixel) (uint16, uint16, BOOL); extern void (*GDI_InversePixel) (uint16, uint16); extern void (*GDI_Update) (); extern void (*GDI_LineTo) (uint16, uint16); (part of the source file) void (*GDI_Init) (); void (*GDI_SetPixel) (uint16, uint16, BOOL); void (*GDI_InversePixel) (uint16, uint16); void (*GDI_Update) (); void (*GDI_LineTo) (uint16, uint16); static uchar LCD [DISP_Y/8][DISP_X]; static uint16 LCD_x, // position on the screen LCD_y; // GDI_DetectController // detect used controler and assign public functions void GDI_DetectController () { /* Recorder detected.. just temporary solution */ GDI_Init = GDI_InitRec; GDI_SetPixel = GDI_SetPixelRec; GDI_InversePixel = GDI_InversePixelRec; GDI_Update = GDI_UpdateRec; GDI_LineTo = GDI_LineToRec; } Is there any possibility to detect weather the system is running on a JBR or a normal JB? Received on 2002-03-14 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |