Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix authored Oct 27, 2023
1 parent 5e8023f commit 1465c47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions display/d.erase/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
int main(int argc, char *argv[])
{
struct Option *color;
struct Flag *eraseframe;
struct Flag * eraseframe;
struct GModule *module;

G_gisinit(argv[0]);

module = G_define_module();
G_add_keyword(_("display"));
G_add_keyword(_("graphics"));
G_add_keyword(_("graphics")) ;
G_add_keyword(_("monitors"));
module->description = _("Erases the contents of the active graphics "
"display frame with user defined color.");

color = G_define_standard_option(G_OPT_C);
color->key = "bgcolor";
color->label = _("Background color");
color->answer = DEFAULT_BG_COLOR;
color-> answer = DEFAULT_BG_COLOR;

eraseframe = G_define_flag();
eraseframe->key = 'f';
Expand All @@ -43,11 +43,11 @@ int main(int argc, char *argv[])
if (G_parser(argc, argv))
exit(EXIT_FAILURE);

D_open_driver();
D_open_driver();

D_setup_unity(0);

D_erase(color->answer);
D_erase(color->answer);

if (eraseframe->answer)
D__erase();
Expand Down

0 comments on commit 1465c47

Please sign in to comment.