Mercurial > hg > Game > Cerium
changeset 900:1760b45ca799 draft
minor fix.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Jul 2010 23:44:46 +0900 |
parents | 1b9418af3127 |
children | 683658524c97 |
files | Renderer/Engine/viewer.cc Renderer/Engine/viewerFB.cc |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/viewer.cc Fri Jul 16 22:20:02 2010 +0900 +++ b/Renderer/Engine/viewer.cc Fri Jul 16 23:44:46 2010 +0900 @@ -175,7 +175,7 @@ spackList_length = (this->height + split_screen_h - 1) / split_screen_h; spackList = (SpanPack*)manager->allocate(sizeof(SpanPack)*spackList_length); -printf("spackList %0x\n",(unsigned int)spackList); +printf("spackList %0x height %d\n",(unsigned int)spackList, this->height); /** * SPU に送る address list は 16 バイト倍数でないといけない。
--- a/Renderer/Engine/viewerFB.cc Fri Jul 16 22:20:02 2010 +0900 +++ b/Renderer/Engine/viewerFB.cc Fri Jul 16 23:44:46 2010 +0900 @@ -113,9 +113,9 @@ fprintf(stderr, "Cannot get frame buffer!\n"); pixels = (new Uint32[width*height*32/8]); } - width = screen_info.xres; - height = screen_info.yres; - bpp = screen_info.vbpp; + this->width = screen_info.xres; + this->height = screen_info.yres; + this->bpp = screen_info.vbpp; return pixels; }