File tree Expand file tree Collapse file tree 3 files changed +181
-179
lines changed
examples/gfx_floodfill/src Expand file tree Collapse file tree 3 files changed +181
-179
lines changed Original file line number Diff line number Diff line change @@ -24,32 +24,32 @@ void main(void) {
24
24
int cx = LCD_WIDTH / 2 ;
25
25
int cy = LCD_HEIGHT / 2 ;
26
26
27
- /* Build the corridinates of the polygon */
27
+ /* Build the coordinates of the polygon */
28
28
double theta = - M_PI / 2 ;
29
29
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 )),
32
32
pts [i + 1 ] = (int )(cy + ry * sin (theta ));
33
33
theta += dtheta ;
34
34
}
35
35
36
36
/* Initialize the 8bpp graphics */
37
- gfx_Begin ( gfx_8bpp );
37
+ gfx_Begin (gfx_8bpp );
38
38
39
39
/* Set up the palette */
40
- gfx_SetColor ( gfx_black );
40
+ gfx_SetColor (gfx_black );
41
41
42
42
/* Draw a polygon on the buffer */
43
43
gfx_Polygon (pts , 5 );
44
44
45
45
/* Pause */
46
- while ( !os_GetCSC () );
46
+ while ( !os_GetCSC ());
47
47
48
48
/* Flood fill the rest of the screen */
49
49
gfx_FloodFill (0 , 0 , 0 );
50
50
51
51
/* Pause */
52
- while ( !os_GetCSC () );
52
+ while ( !os_GetCSC ());
53
53
54
54
/* Close the graphics and return to the OS */
55
55
gfx_End ();
Original file line number Diff line number Diff line change 177
177
#endif
178
178
179
179
/* simple function prototypes (should not ever be used or even looked at) */
180
+ void Debugger (void );
180
181
void SetBreakpoint (void * address );
181
182
void RemoveBreakpoint (void * address );
182
183
void SetWatchpoint (void * address , unsigned length );
@@ -186,3 +187,4 @@ void SetReadWriteWatchpoint(void *address, unsigned length);
186
187
void RemoveWatchpoint (void * address );
187
188
void RemoveAllWatchpoints (void );
188
189
void RemoveAllBreakpoints (void );
190
+
You can’t perform that action at this time.
0 commit comments