Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/simple_render/fb.h @ 318:7efc5ede2c03
Document/Cerium_2009.mm
author | aaa |
---|---|
date | Tue, 09 Jun 2009 22:55:00 +0900 |
parents | 58fd16298954 |
children | f64d75473f95 |
line wrap: on
line diff
--- a/TaskManager/Test/simple_render/fb.h Tue Jun 09 22:29:58 2009 +0900 +++ b/TaskManager/Test/simple_render/fb.h Tue Jun 09 22:55:00 2009 +0900 @@ -46,7 +46,7 @@ int xres,yres,vbpp,line_len; //unsigned short tcolor ; - /* 読み書き用にファイルを開く */ + /* ɤ߽Ѥ˥ե */ fd_framebuffer = open( DEVICE_NAME , O_RDWR); if ( !fd_framebuffer ) { send_current_error_msg("Framebuffer device open error !"); @@ -54,13 +54,13 @@ } send_current_information("The framebuffer device was opened !"); - /* 固定スクリーン情報取得 */ + /* ꥹ */ if ( ioctl( fd_framebuffer , FBIOGET_FSCREENINFO , &finfo ) ) { send_current_error_msg("Fixed information not gotton !"); exit(2); } - /* 変動スクリーン情報取得 */ + /* ư */ if ( ioctl( fd_framebuffer , FBIOGET_VSCREENINFO , &vinfo ) ) { send_current_error_msg("Variable information not gotton !"); exit(3); @@ -72,10 +72,10 @@ sprintf( tmp , "%d(pixel)x%d(line), %dbpp(bits per pixel)",xres,yres,vbpp); send_current_information( tmp ); - /* バイト単位でのスクリーンのサイズを計算 */ + /* Хñ̤ǤΥΥ */ screensize = xres * yres * vbpp / DIV_BYTE ; - /* デバイスをメモリにマップする */ + /* ǥХ˥ޥåפ */ fbptr = (char *)mmap(0,screensize,PROT_READ | PROT_WRITE,MAP_SHARED,fd_framebuffer,0); if ( (int)fbptr == -1 ) { send_current_error_msg("Don't get framebuffer device to memory !");