Changeset 775df25 in mainline
- Timestamp:
- 2006-09-14T13:02:33Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e5ecc02
- Parents:
- b254b3b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/fb/fb.c
rb254b3b r775df25 467 467 { 468 468 switch (bpp) { 469 case 8: 470 screen.rgb2scr = rgb_1byte; 471 screen.scr2rgb = byte1_rgb; 472 screen.pixelbytes = 1; 473 break; 474 case 16: 475 screen.rgb2scr = rgb_2byte; 476 screen.scr2rgb = byte2_rgb; 477 screen.pixelbytes = 2; 478 break; 479 case 24: 480 screen.rgb2scr = rgb_3byte; 481 screen.scr2rgb = byte3_rgb; 482 if (!align) 483 screen.pixelbytes = 3; 484 else 485 screen.pixelbytes = 4; 486 break; 487 case 32: 488 screen.rgb2scr = rgb_4byte; 489 screen.scr2rgb = byte4_rgb; 469 case 8: 470 screen.rgb2scr = rgb_1byte; 471 screen.scr2rgb = byte1_rgb; 472 screen.pixelbytes = 1; 473 break; 474 case 16: 475 screen.rgb2scr = rgb_2byte; 476 screen.scr2rgb = byte2_rgb; 477 screen.pixelbytes = 2; 478 break; 479 case 24: 480 screen.rgb2scr = rgb_3byte; 481 screen.scr2rgb = byte3_rgb; 482 if (!align) 483 screen.pixelbytes = 3; 484 else 490 485 screen.pixelbytes = 4; 491 break; 492 } 493 494 486 break; 487 case 32: 488 screen.rgb2scr = rgb_4byte; 489 screen.scr2rgb = byte4_rgb; 490 screen.pixelbytes = 4; 491 break; 492 } 493 495 494 screen.fbaddress = (unsigned char *) addr; 496 495 screen.xres = xres; … … 1237 1236 async_set_client_connection(fb_client_connection); 1238 1237 1239 fb_ph_addr =(void *)sysinfo_value("fb.address.physical");1240 fb_width =sysinfo_value("fb.width");1241 fb_height =sysinfo_value("fb.height");1242 fb_bpp =sysinfo_value("fb.bpp");1243 fb_bpp_align =sysinfo_value("fb.bpp-align");1244 fb_scanline =sysinfo_value("fb.scanline");1245 fb_invert_colors =sysinfo_value("fb.invert-colors");1238 fb_ph_addr = (void *) sysinfo_value("fb.address.physical"); 1239 fb_width = sysinfo_value("fb.width"); 1240 fb_height = sysinfo_value("fb.height"); 1241 fb_bpp = sysinfo_value("fb.bpp"); 1242 fb_bpp_align = sysinfo_value("fb.bpp-align"); 1243 fb_scanline = sysinfo_value("fb.scanline"); 1244 fb_invert_colors = sysinfo_value("fb.invert-colors"); 1246 1245 1247 1246 asz = fb_scanline*fb_height; … … 1249 1248 1250 1249 map_physmem(fb_ph_addr, fb_addr, ALIGN_UP(asz,PAGE_SIZE) >>PAGE_WIDTH, 1251 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE);1252 1250 AS_AREA_READ | AS_AREA_WRITE); 1251 1253 1252 screen_init(fb_addr, fb_width, fb_height, fb_bpp, fb_scanline, fb_bpp_align, fb_invert_colors); 1254 1255 1253 return 0; 1256 1254 }
Note:
See TracChangeset
for help on using the changeset viewer.