Changeset 1fd7700 in mainline for console/gcons.c
- Timestamp:
- 2006-06-07T14:12:53Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 70178b74
- Parents:
- b7e9c34
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
console/gcons.c
rb7e9c34 r1fd7700 71 71 /** List of pixmaps identifying these icons */ 72 72 static int ic_pixmaps[CONS_LAST] = {-1,-1,-1,-1,-1,-1}; 73 static int animation = -1; 73 74 74 75 static int active_console = 0; … … 320 321 } 321 322 323 extern char _binary_anim_1_ppm_start[0]; 324 extern int _binary_anim_1_ppm_size; 325 extern char _binary_anim_2_ppm_start[0]; 326 extern int _binary_anim_2_ppm_size; 327 extern char _binary_anim_3_ppm_start[0]; 328 extern int _binary_anim_3_ppm_size; 329 extern char _binary_anim_4_ppm_start[0]; 330 extern int _binary_anim_4_ppm_size; 331 static void make_anim(void) 332 { 333 int an; 334 int pm; 335 336 an = async_req(fbphone, FB_ANIM_CREATE, cstatus_vp[KERNEL_CONSOLE], NULL); 337 if (an < 0) 338 return; 339 340 pm = make_pixmap(_binary_anim_1_ppm_start, (int)&_binary_anim_1_ppm_size); 341 async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 342 343 pm = make_pixmap(_binary_anim_2_ppm_start, (int)&_binary_anim_2_ppm_size); 344 async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 345 346 pm = make_pixmap(_binary_anim_3_ppm_start, (int)&_binary_anim_3_ppm_size); 347 async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 348 349 pm = make_pixmap(_binary_anim_4_ppm_start, (int)&_binary_anim_4_ppm_size); 350 async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm); 351 352 async_msg(fbphone, FB_ANIM_START, an); 353 354 animation = an; 355 } 356 322 357 extern char _binary_cons_selected_ppm_start[0]; 323 358 extern int _binary_cons_selected_ppm_size; … … 333 368 int rc; 334 369 int i; 370 int status_start = STATUS_START; 335 371 336 372 fbphone = phone; … … 352 388 353 389 /* Create status buttons */ 390 status_start += (xres-800) / 2; 354 391 for (i=0; i < CONSOLE_COUNT; i++) { 355 cstatus_vp[i] = vp_create( STATUS_START+CONSOLE_MARGIN+i*(STATUS_WIDTH+STATUS_SPACE),392 cstatus_vp[i] = vp_create(status_start+CONSOLE_MARGIN+i*(STATUS_WIDTH+STATUS_SPACE), 356 393 STATUS_TOP, STATUS_WIDTH, STATUS_HEIGHT); 357 394 if (cstatus_vp[i] < 0) … … 373 410 (int)&_binary_cons_kernel_ppm_size); 374 411 ic_pixmaps[CONS_DISCONNECTED_SEL] = ic_pixmaps[CONS_SELECTED]; 412 413 make_anim(); 375 414 376 415 use_gcons = 1;
Note:
See TracChangeset
for help on using the changeset viewer.