# HG changeset patch # User Shinji KONO # Date 1279291486 -32400 # Node ID 1760b45ca7991fd5556aaeff937128f082ad31a2 # Parent 1b9418af3127d6e34e07671d815ea3c9785c09ba minor fix. diff -r 1b9418af3127 -r 1760b45ca799 Renderer/Engine/viewer.cc --- 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 バイト倍数でないといけない。 diff -r 1b9418af3127 -r 1760b45ca799 Renderer/Engine/viewerFB.cc --- 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; }