Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fullscreen argument #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions platform/x11/pdfapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,7 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int repai
winresize(app, w, h);
}

winfullscreen(app, app->fullscreen);
winrepaint(app);

wincursor(app, ARROW);
Expand Down
4 changes: 3 additions & 1 deletion platform/x11/x11_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ static void usage(const char *argv0)
fprintf(stderr, "usage: %s [options] file.pdf [page]\n", argv0);
fprintf(stderr, "\t-p -\tpassword\n");
fprintf(stderr, "\t-r -\tresolution\n");
fprintf(stderr, "\t-F -\tfullscreen\n");
fprintf(stderr, "\t-A -\tset anti-aliasing quality in bits (0=off, 8=best)\n");
fprintf(stderr, "\t-C -\tRRGGBB (tint color in hexadecimal syntax)\n");
fprintf(stderr, "\t-W -\tpage width for EPUB layout\n");
Expand Down Expand Up @@ -907,7 +908,7 @@ int main(int argc, char **argv)

pdfapp_init(ctx, &gapp);

while ((c = fz_getopt(argc, argv, "Ip:r:A:C:W:H:S:U:Xb:")) != -1)
while ((c = fz_getopt(argc, argv, "IFp:r:A:C:W:H:S:U:Xb:")) != -1)
{
switch (c)
{
Expand All @@ -919,6 +920,7 @@ int main(int argc, char **argv)
case 'p': password = fz_optarg; break;
case 'r': resolution = atoi(fz_optarg); break;
case 'I': gapp.invert = 1; break;
case 'F': gapp.fullscreen = 1; break;
case 'A': fz_set_aa_level(ctx, atoi(fz_optarg)); break;
case 'W': gapp.layout_w = fz_atof(fz_optarg); break;
case 'H': gapp.layout_h = fz_atof(fz_optarg); break;
Expand Down