updf: small fix

git-svn-id: svn://kolibrios.org@5821 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2015-09-08 10:45:00 +00:00
parent 17025e07cf
commit 13e4fb3d40
2 changed files with 6 additions and 4 deletions

View File

@ -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; 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) if (gapp.image->n == 4)
blit(window_center + Form.client_left, blit(window_center + Form.client_left,
Form.client_top + TOOLBAR_HEIGHT, Form.client_top + TOOLBAR_HEIGHT,
@ -327,8 +328,8 @@ int main (void)
if(butt==13) //show help if(butt==13) //show help
{ {
__menuet__bar(0, TOOLBAR_HEIGHT, Form.client_width, Form.client_height - TOOLBAR_HEIGHT, 0xF2F2F2); __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(20, TOOLBAR_HEIGHT + 20 , 0x90000000, "uPDF for KolibriOS v1.21", 0);
__menuet__write_text(21, TOOLBAR_HEIGHT + 20 , 0x90000000, "uPDF for KolibriOS v1.2", 0); __menuet__write_text(21, TOOLBAR_HEIGHT + 20 , 0x90000000, "uPDF for KolibriOS v1.21", 0);
for (ii=0; help[ii]!=0; ii++) { for (ii=0; help[ii]!=0; ii++) {
__menuet__write_text(20, TOOLBAR_HEIGHT + 60 + ii * 15, 0x80000000, help[ii], 0); __menuet__write_text(20, TOOLBAR_HEIGHT + 60 + ii * 15, 0x80000000, help[ii], 0);
} }

View File

@ -41,7 +41,8 @@ char *pdfapp_version(pdfapp_t *app)
char *pdfapp_usage(pdfapp_t *app) char *pdfapp_usage(pdfapp_t *app)
{ {
return return " ";
/*
"L\t\t-- rotate left\n" "L\t\t-- rotate left\n"
"R\t\t-- rotate right\n" "R\t\t-- rotate right\n"
"h\t\t-- scroll left\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 next search result\n"
"N\t\t-- find previous search result\n" "N\t\t-- find previous search result\n"
"c\t\t-- toggle between color and grayscale\n" "c\t\t-- toggle between color and grayscale\n"
; ; */
} }
void pdfapp_init(pdfapp_t *app) void pdfapp_init(pdfapp_t *app)