Skip to content

Commit ad5cbef

Browse files
Change to just gfx_Begin()
1 parent e26bf07 commit ad5cbef

File tree

20 files changed

+17
-42
lines changed

20 files changed

+17
-42
lines changed

examples/gfx_buffered_cube/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void main(void) {
6060
midy2 = (face2[1][1] + face2[2][1]) / 2.0;
6161

6262
/* Start the graphics routines */
63-
gfx_Begin(gfx_8bpp);
63+
gfx_Begin();
6464
gfx_SetDraw(gfx_buffer);
6565

6666
/* Loop until a key is pressed */

examples/gfx_buffering/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/* This tutorial is meant to be played around with to get a feeling for how buffering works */
1414
void main(void) {
1515
/* Initialize the 8bpp graphics */
16-
gfx_Begin(gfx_8bpp);
16+
gfx_Begin();
1717

1818
/* Set up the palette */
1919
gfx_SetColor(gfx_black);

examples/gfx_char/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const char *my_str = "!!DEPPILF si txet sihT";
2121

2222
void main(void) {
2323
/* Initialize the 8bpp graphics */
24-
gfx_Begin(gfx_8bpp);
24+
gfx_Begin();
2525
gfx_FillScreen(gfx_black);
2626

2727
/* Setup the colors */

examples/gfx_clipping/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void main(void) {
2424
int box_scale = 20;
2525

2626
/* Initialize the 8bpp graphics */
27-
gfx_Begin(gfx_8bpp);
27+
gfx_Begin();
2828
gfx_FillScreen(gfx_black);
2929

3030
/* Setup the colors */

examples/gfx_floodfill/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void main(void) {
2828
}
2929

3030
/* Initialize the 8bpp graphics */
31-
gfx_Begin(gfx_8bpp);
31+
gfx_Begin();
3232

3333
/* Set up the palette */
3434
gfx_SetColor(gfx_black);

examples/gfx_hello_world/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void main(void) {
2222
srand(rtc_Time());
2323

2424
/* Initialize the 8bpp graphics */
25-
gfx_Begin(gfx_8bpp);
25+
gfx_Begin();
2626

2727
/* Fill the screen black */
2828
gfx_FillScreen(gfx_black);

examples/gfx_light_dark/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void main(void) {
1616
uint8_t i = 0;
1717

1818
/* Initialize the 8bpp graphics */
19-
gfx_Begin(gfx_8bpp);
19+
gfx_Begin();
2020

2121
/* For i in 0..255 */
2222
do {

examples/gfx_rletsprite/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void main(void) {
3333
gfx_rletsprite_t *ubuntu_malloc;
3434

3535
/* Initialize the 8bpp graphics */
36-
gfx_Begin(gfx_8bpp);
36+
gfx_Begin();
3737

3838
/* Set up the palette for our sprites */
3939
gfx_SetPalette(logo_gfx_pal, sizeof logo_gfx_pal, 0);

examples/gfx_shapes_shift/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void main(void) {
2222
};
2323

2424
/* Initialize the 8bpp graphics */
25-
gfx_Begin(gfx_8bpp);
25+
gfx_Begin();
2626
gfx_SetColor(gfx_blue);
2727

2828
/* Draw some circles to make sure they all look the same */

examples/gfx_sprite/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
void main(void) {
1717
/* Initialize the 8bpp graphics */
18-
gfx_Begin(gfx_8bpp);
18+
gfx_Begin();
1919

2020
/* Set up the palette for our sprites */
2121
gfx_SetPalette(logo_gfx_pal, sizeof logo_gfx_pal, 0);

0 commit comments

Comments
 (0)