Skip to content

Commit

Permalink
Updated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlynxZhou committed Feb 4, 2020
1 parent 52ac64d commit 3bacc9e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions flipclock.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,6 @@ void quit_app(struct app_all *app)
void print_help(const struct app_all *app)
{
printf("A simple flip clock screensaver using SDL2.\n");
printf("Written by AlynxZhou. Version %s.\n", \
app->properties.version);
printf("Usage: %s [OPTION...] <value>\n", \
app->properties.program_name);
printf("Options:\n");
Expand Down
3 changes: 1 addition & 2 deletions flipclock.desktop
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[Desktop Entry]
Type=Application
Version=1.3.7
Name=FlipClock
Comment=A flip clock screensaver supported by SDL2.
Icon=flipclock
Exec=flipclock -f /usr/share/fonts/flipclock.ttf
TryExec=/usr/bin/flipclock
StartupNotify=false
Terminal=false
Categories=Game;
Categories=Game
1 change: 0 additions & 1 deletion flipclock.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

struct app_properties {
const char *title;
const char *version;
const char *program_name;
const char *font_path;
const char *fallback_font;
Expand Down
2 changes: 0 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ int main(int argc, const char *argv[])
const char FALLBACK_FONT[] = "flipclock.ttf";
const char OPT_STRING[] = "hwt:f:s:";
const char TITLE[] = "FlipClock";
const char VERSION[] = "2.3.3";
struct app_all flipclock;
int opt = 0;
/* Fill default content. */
fill_default(&flipclock);
flipclock.properties.title = TITLE;
flipclock.properties.version = VERSION;
flipclock.properties.fallback_font = FALLBACK_FONT;
flipclock.properties.program_name = argv[0];
/* Dealing with arguments. */
Expand Down

0 comments on commit 3bacc9e

Please sign in to comment.