Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/spe/DrawSpan.cpp @ 173:56be4a6e5513
add scale
author | gongo@localhost.localdomain |
---|---|
date | Thu, 11 Dec 2008 20:17:01 +0900 |
parents | d1f2ce3bdb2f |
children | 559b48b69b76 |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/spe/DrawSpan.cpp Thu Dec 11 16:33:39 2008 +0900 +++ b/TaskManager/Test/test_render/spe/DrawSpan.cpp Thu Dec 11 20:17:01 2008 +0900 @@ -105,12 +105,13 @@ tile = hash->get(addr); if (tile == NULL) { - if (tileList->size >= MAX_TILE) { - tileList->init(); - hash->clear(); - } + tile = tileList->nextTile(); - tile = &tileList->tile[tileList->size]; + /** + * FIFO なので、もし前のが残っていれば削除 + */ + hash->remove(tile->texture_addr); + tile->texture_addr = addr; smanager->dma_load(tile->pixel, (uint32)addr, @@ -128,8 +129,6 @@ return 0xff0000; } - tileList->size++; - smanager->dma_wait(TEX_LOAD); }