Skip to content

Commit ed453af

Browse files
Fix dbg_Debugger() warnings, +- to - in graphx.asm
1 parent 0328237 commit ed453af

File tree

3 files changed

+181
-179
lines changed

3 files changed

+181
-179
lines changed

examples/gfx_floodfill/src/main.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,32 @@ void main(void) {
2424
int cx = LCD_WIDTH / 2;
2525
int cy = LCD_HEIGHT / 2;
2626

27-
/* Build the corridinates of the polygon */
27+
/* Build the coordinates of the polygon */
2828
double theta = -M_PI / 2;
2929
double dtheta = 4 * M_PI / 5;
30-
for (i = 0; i < 5*2; i+=2) {
31-
pts[i] = (int)(cx + rx * cos(theta)),
30+
for (i = 0; i < 10; i += 2) {
31+
pts[i+0] = (int)(cx + rx * cos(theta)),
3232
pts[i+1] = (int)(cy + ry * sin(theta));
3333
theta += dtheta;
3434
}
3535

3636
/* Initialize the 8bpp graphics */
37-
gfx_Begin( gfx_8bpp );
37+
gfx_Begin(gfx_8bpp);
3838

3939
/* Set up the palette */
40-
gfx_SetColor( gfx_black );
40+
gfx_SetColor(gfx_black);
4141

4242
/* Draw a polygon on the buffer */
4343
gfx_Polygon(pts, 5);
4444

4545
/* Pause */
46-
while( !os_GetCSC() );
46+
while (!os_GetCSC());
4747

4848
/* Flood fill the rest of the screen */
4949
gfx_FloodFill(0, 0, 0);
5050

5151
/* Pause */
52-
while( !os_GetCSC() );
52+
while (!os_GetCSC());
5353

5454
/* Close the graphics and return to the OS */
5555
gfx_End();

src/ce/debug.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@
177177
#endif
178178

179179
/* simple function prototypes (should not ever be used or even looked at) */
180+
void Debugger(void);
180181
void SetBreakpoint(void *address);
181182
void RemoveBreakpoint(void *address);
182183
void SetWatchpoint(void *address, unsigned length);
@@ -186,3 +187,4 @@ void SetReadWriteWatchpoint(void *address, unsigned length);
186187
void RemoveWatchpoint(void *address);
187188
void RemoveAllWatchpoints(void);
188189
void RemoveAllBreakpoints(void);
190+

0 commit comments

Comments
 (0)