Subversion Repositories Kolibri OS

Rev

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

Rev 7475 Rev 7533
Line 65... Line 65...
65
	image.stride=stride;
65
	image.stride=stride;
66
	image.d=d;
66
	image.d=d;
67
	asm ("int $0x40"::"a"(73),"b"(0),"c"(&image));
67
	asm ("int $0x40"::"a"(73),"b"(0),"c"(&image));
68
}
68
}
Line -... Line 69...
-
 
69
 
-
 
70
void run_app()
-
 
71
{
-
 
72
	return;
-
 
73
}
Line 69... Line 74...
69
 
74
 
70
 
75
 
71
int __menuet__get_mouse_wheels(void)
76
int __menuet__get_mouse_wheels(void)
72
{
77
{
Line 143... Line 148...
143
 
148
 
144
char *winpassword(pdfapp_t *app, char *filename)
149
char *winpassword(pdfapp_t *app, char *filename)
145
{
150
{
146
	char *r = "";
151
	char *r = "";
-
 
152
	return r;
147
	return r;
153
	random();
Line 148... Line 154...
148
}
154
}
149
 
155
 
Line 165... Line 171...
165
{
171
{
166
	pdfapp_close(&gapp);
172
	pdfapp_close(&gapp);
167
	__menuet__sys_exit();
173
	__menuet__sys_exit();
168
}
174
}
Line -... Line 175...
-
 
175
 
-
 
176
void RunOpenApp()
-
 
177
{
-
 
178
	RunApp("/sys/lod", "*pdf* /kolibrios/media/updf");
-
 
179
}
Line 169... Line 180...
169
 
180
 
170
 
181
 
171
void winrepaint(pdfapp_t *app)
182
void winrepaint(pdfapp_t *app)
172
{
183
{
Line 256... Line 267...
256
 
267
 
257
int main (void)
268
int main (void)
258
{
269
{
259
	char ii, mouse_wheels_state;
270
	char ii, mouse_wheels_state;
-
 
271
	char* original_command_line = *(char**)0x1C;
-
 
272
	
-
 
273
	if (*original_command_line == 0) {
-
 
274
		kol_board_puts("Running uPDF without any param");
-
 
275
		RunOpenApp();
-
 
276
		__menuet__sys_exit();
-
 
277
	}
260
	char* original_command_line = *(char**)0x1C;
278
 
261
	kol_board_puts(original_command_line);
279
	kol_board_puts(original_command_line);
Line 262... Line 280...
262
	kol_board_puts("\n");
280
	kol_board_puts("\n");
263
	
281
	
Line 323... Line 341...
323
			break;
341
			break;
Line 324... Line 342...
324
 
342
 
325
		case evButton:
343
		case evButton:
326
			butt = __menuet__get_button_id();
344
			butt = __menuet__get_button_id();
327
			if(butt==1) __menuet__sys_exit();
345
			if(butt==1) __menuet__sys_exit();
328
			if(butt==10) RunApp("/sys/lod", "*pdf* /kolibrios/media/updf");
346
			if(butt==10) RunOpenApp();
329
			if(butt==11) PageZoomOut(); //magnify -
347
			if(butt==11) PageZoomOut(); //magnify -
330
			if(butt==12) PageZoomIn(); //magnify +
348
			if(butt==12) PageZoomIn(); //magnify +
331
			if(butt==13) //show help
349
			if(butt==13) //show help
332
			{
350
			{