Skip to content

Commit

Permalink
removed mini_printf library
Browse files Browse the repository at this point in the history
removed `mini_printf` library as the new Pebble SDK added `snprintf `
  • Loading branch information
YagoCarballo committed Aug 9, 2014
1 parent faa3f3e commit 54287c7
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 219 deletions.
49 changes: 25 additions & 24 deletions appinfo.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
{
"appKeys": {},
"capabilities": [
""
],
"shortName": "Stacker",
"longName": "Pebble Stacker",
"versionCode": 1,
"appKeys": {},
"uuid": "52ed0ef1-7128-47fe-b1c5-935ce15852e2",
"companyName": "ameiga",
"versionLabel": "1.0.4",
"watchapp": {
"watchface": false
},
"longName": "Pebble Stacker",
"projectType": "native",
"resources": {
"media": [
{
"type": "png",
"menuIcon": true,
"name": "PEBBLE_STACKER_ICON",
"file": "images/PebbleStackerIcon3.png"
"file": "images/ameiga_pebble_splash.png",
"name": "AMEIGA_SPLASH",
"type": "png"
},
{
"type": "png",
"name": "FRONT_ARROW",
"file": "images/front_arrow.png"
"file": "images/next_arrow.png",
"name": "NEXT_ARROW",
"type": "png"
},
{
"type": "png",
"file": "images/back_arrow.png",
"name": "BACK_ARROW",
"file": "images/back_arrow.png"
"type": "png"
},
{
"type": "png",
"name": "NEXT_ARROW",
"file": "images/next_arrow.png"
"file": "images/front_arrow.png",
"name": "FRONT_ARROW",
"type": "png"
},
{
"type": "png",
"name": "AMEIGA_SPLASH",
"file": "images/ameiga_pebble_splash.png"
"file": "images/PebbleStackerIcon3.png",
"menuIcon": true,
"name": "PEBBLE_STACKER_ICON",
"type": "png"
}
]
},
"shortName": "Stacker",
"uuid": "52ed0ef1-7128-47fe-b1c5-935ce15852e2",
"versionCode": 1,
"versionLabel": "1.1",
"watchapp": {
"watchface": false
}
}
2 changes: 1 addition & 1 deletion src/about.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void about_window_load (Window *window) {
ui.textLayer = text_layer_create(textBounds);
text_layer_set_text_color(ui.textLayer, GColorBlack);
text_layer_set_background_color(ui.textLayer, GColorClear);
text_layer_set_text(ui.textLayer, "Developer:\nYago Carballo (yagocarballo@gmail.com)\n\nFrameworks:\nmini-printf (https://github.com/mludvig/mini-printf)\n\nGame By...\nameiga 2014\n\n");
text_layer_set_text(ui.textLayer, "Developer:\nYago Carballo (yagocarballo@gmail.com)\n\nGame By...\nameiga 2014\n\n");
text_layer_set_font(ui.textLayer, fonts_get_system_font(FONT_KEY_GOTHIC_18_BOLD));
text_layer_set_text_alignment(ui.textLayer, GTextAlignmentCenter);

Expand Down
3 changes: 1 addition & 2 deletions src/board.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <pebble.h>
#include "board.h"
#include "mini-printf.h"
#include "scores_name.h"

static const int TIME_INTERVAL = 100; // Default Speed (milliseconds)
Expand Down Expand Up @@ -271,7 +270,7 @@ void timer_callback (void *data) {
layer_mark_dirty(ui.boardLayer); // Marks the Layer as dirty so it is updated on the next ui refresh

// Prints the Points into the Screen
mini_snprintf(debug.text, 30, "Points: %d", status.points);
snprintf(debug.text, 30, "Points: %d", status.points);
text_layer_set_text(ui.debugLayer, debug.text);

// Changes the Speed to increase difficulty
Expand Down
172 changes: 0 additions & 172 deletions src/mini-printf.c

This file was deleted.

18 changes: 0 additions & 18 deletions src/mini-printf.h

This file was deleted.

3 changes: 1 addition & 2 deletions src/scores.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <pebble.h>
#include "scores.h"
#include "mini-printf.h"

static const uint32_t SCORES_NAME_1 = 10;
static const uint32_t SCORES_NAME_2 = 20;
Expand Down Expand Up @@ -109,7 +108,7 @@ void scores_window_appear (Window *window) {
}

strcpy(status.scores, "");
mini_snprintf(status.scores, 50,
snprintf(status.scores, 50,
"%s %d \n%s %d \n%s %d \n",
status.name[0], status.points[0],
status.name[1], status.points[1],
Expand Down

0 comments on commit 54287c7

Please sign in to comment.