From 13e4fb3d40dca12b5f32ced056c79dd92b617647 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Tue, 8 Sep 2015 10:45:00 +0000 Subject: [PATCH] updf: small fix git-svn-id: svn://kolibrios.org@5821 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/media/updf/apps/kos_main.c | 5 +++-- contrib/media/updf/apps/pdfapp.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/contrib/media/updf/apps/kos_main.c b/contrib/media/updf/apps/kos_main.c index a1155f2341..dbe24cca34 100644 --- a/contrib/media/updf/apps/kos_main.c +++ b/contrib/media/updf/apps/kos_main.c @@ -183,6 +183,7 @@ void winblit(pdfapp_t *app) if (Form.client_width > gapp.image->w) window_center = (Form.client_width - gapp.image->w) / 2; else window_center = 0; + gapp.panx = 0; if (gapp.image->n == 4) blit(window_center + Form.client_left, Form.client_top + TOOLBAR_HEIGHT, @@ -327,8 +328,8 @@ int main (void) if(butt==13) //show help { __menuet__bar(0, TOOLBAR_HEIGHT, Form.client_width, Form.client_height - TOOLBAR_HEIGHT, 0xF2F2F2); - __menuet__write_text(20, TOOLBAR_HEIGHT + 20 , 0x90000000, "uPDF for KolibriOS v1.2", 0); - __menuet__write_text(21, TOOLBAR_HEIGHT + 20 , 0x90000000, "uPDF for KolibriOS v1.2", 0); + __menuet__write_text(20, TOOLBAR_HEIGHT + 20 , 0x90000000, "uPDF for KolibriOS v1.21", 0); + __menuet__write_text(21, TOOLBAR_HEIGHT + 20 , 0x90000000, "uPDF for KolibriOS v1.21", 0); for (ii=0; help[ii]!=0; ii++) { __menuet__write_text(20, TOOLBAR_HEIGHT + 60 + ii * 15, 0x80000000, help[ii], 0); } diff --git a/contrib/media/updf/apps/pdfapp.c b/contrib/media/updf/apps/pdfapp.c index f449ee5b03..33ba26bbc4 100644 --- a/contrib/media/updf/apps/pdfapp.c +++ b/contrib/media/updf/apps/pdfapp.c @@ -41,7 +41,8 @@ char *pdfapp_version(pdfapp_t *app) char *pdfapp_usage(pdfapp_t *app) { - return + return " "; + /* "L\t\t-- rotate left\n" "R\t\t-- rotate right\n" "h\t\t-- scroll left\n" @@ -65,7 +66,7 @@ char *pdfapp_usage(pdfapp_t *app) "n\t\t-- find next search result\n" "N\t\t-- find previous search result\n" "c\t\t-- toggle between color and grayscale\n" - ; + ; */ } void pdfapp_init(pdfapp_t *app)