Subversion Repositories Kolibri OS

Rev

Rev 5508 | Rev 7475 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5508 Rev 5821
Line 181... Line 181...
181
 
181
 
Line 182... Line 182...
182
	if (key_mode_enter_page_number==1) HandleNewPageNumber(0); else DrawPagination();
182
	if (key_mode_enter_page_number==1) HandleNewPageNumber(0); else DrawPagination();
Line -... Line 183...
-
 
183
 
183
 
184
	if (Form.client_width > gapp.image->w) window_center = (Form.client_width - gapp.image->w) / 2; else window_center = 0;
184
	if (Form.client_width > gapp.image->w) window_center = (Form.client_width - gapp.image->w) / 2; else window_center = 0;
185
 
185
 
186
	gapp.panx = 0;
186
	if (gapp.image->n == 4)	 		 
187
	if (gapp.image->n == 4)	 		 
187
		 	blit(window_center + Form.client_left, 
188
		 	blit(window_center + Form.client_left, 
Line 325... Line 326...
325
			if(butt==11) PageZoomOut(); //magnify -
326
			if(butt==11) PageZoomOut(); //magnify -
326
			if(butt==12) PageZoomIn(); //magnify +
327
			if(butt==12) PageZoomIn(); //magnify +
327
			if(butt==13) //show help
328
			if(butt==13) //show help
328
			{
329
			{
329
				__menuet__bar(0, TOOLBAR_HEIGHT, Form.client_width, Form.client_height - TOOLBAR_HEIGHT, 0xF2F2F2);	
330
				__menuet__bar(0, TOOLBAR_HEIGHT, Form.client_width, Form.client_height - TOOLBAR_HEIGHT, 0xF2F2F2);	
330
				__menuet__write_text(20, TOOLBAR_HEIGHT + 20      , 0x90000000, "uPDF for KolibriOS v1.2", 0);
331
				__menuet__write_text(20, TOOLBAR_HEIGHT + 20      , 0x90000000, "uPDF for KolibriOS v1.21", 0);
331
				__menuet__write_text(21, TOOLBAR_HEIGHT + 20      , 0x90000000, "uPDF for KolibriOS v1.2", 0);
332
				__menuet__write_text(21, TOOLBAR_HEIGHT + 20      , 0x90000000, "uPDF for KolibriOS v1.21", 0);
332
				for (ii=0; help[ii]!=0; ii++) {
333
				for (ii=0; help[ii]!=0; ii++) {
333
					__menuet__write_text(20, TOOLBAR_HEIGHT + 60 + ii * 15, 0x80000000, help[ii], 0);
334
					__menuet__write_text(20, TOOLBAR_HEIGHT + 60 + ii * 15, 0x80000000, help[ii], 0);
334
				}
335
				}
335
			}
336
			}
336
			if(butt==14) pdfapp_onkey(&gapp, '['); //previous page
337
			if(butt==14) pdfapp_onkey(&gapp, '['); //previous page