X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpcxtest.c;h=357e2cae3451f75c2f2d8c4e182c22019bc20dde;hb=17ec26395419ff775f29661e50265dfbccfda3b0;hp=29183665112acc02b629e4c3381e74cb4a8c21ca;hpb=28f2a71de747c88b57885206f55d1f7c6e0656cf;p=16.git diff --git a/src/pcxtest.c b/src/pcxtest.c index 29183665..357e2cae 100755 --- a/src/pcxtest.c +++ b/src/pcxtest.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -77,12 +77,12 @@ void main() { modexPalUpdate1(&PCXBMP->palette); /* clear and draw one sprite and one bitmap */ - modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].sw, gvar.video.page[0].sh, 1); + modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].width, gvar.video.page[0].height, 1); /* non sprite comparison */ - start = *clockw; + /*start = *clockw; //for(i=0; i<100 ;i++) { - oldDrawBmp(VGA, 20, 20, PCXBMPPTR, 0); + oldDrawBmp(VGA, 0, 0, PCXBMPPTR, 0); //} start = *clockw; @@ -97,20 +97,23 @@ void main() { //0000 modexCopyPageRegion(&gvar.video.page[0], &gvar.video.page[0], 20, 20, 128, 20, 64, 64); modexCopyPageRegion(&gvar.video.page[0], &gvar.video.page[0], 0, 0, 0, 0, 320, 240); //} - t2 = (*clockw-start)/18.2; + t2 = (*clockw-start)/18.2;*/ start = *clockw; //for(i=0; i<100 ;i++) { - oldDrawBmp(VGA, 20, 20, PCXBMPPTR, 1); + oldDrawBmp(VGA, 0, 0, PCXBMPPTR, 1); //} + t1 = (*clockw-start) /18.2; start = *clockw; //for(i=0; i<100 ;i++) { //0000 modexDrawSprite(&gvar.video.page[0], 20, 20, PCXBMPPTR); - modexDrawSprite(&gvar.video.page[0], 160, 120, PCXBMPPTR); + modexDrawSprite(&(gvar.video.page[0]), 160, 120, PCXBMPPTR); + modexDrawBmp(&gvar.video.page[0], 0, 128, PCXBMPPTR); //} + t2 = (*clockw-start)/18.2; //_fmemset(MK_FP(0xA000, 0), (int)p->plane, gvar.video.page[0].sw*(gvar.video.page[0].sh*2)); //modexDrawBmp(&gvar.video.page[0], 0, 0, PCXBMPPTR); while(!kbhit())