tscaleblit not working
Displaying 1-2 of 2 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
IkimashoZ

void render_byline(int img, int time_elapsed) {

int time_since_start;
int variance;

time_since_start = time_elapsed - 335;
variance = 30 - (time_since_start / 2);
if(variance < 0) variance = 0;

if(time_elapsed >= 335) {

if(variance) tscaleblit(95, (440 + variance), (30 - variance), 450, img, screen);
else tblit(95, 440, img, screen);

}

}


Specifically, it's not blitting anything to the screen at all. The final tblit works just fine, but I'm not getting the upward stretch effect that I want. And I wants it bad. Little help??

Posted on 2006-11-16 07:12:32

IkimashoZ

Wow. It's funny how posting a chunk of code on the forum will let you look at it in a way that you didn't when you were staring at for hours on end in a text file. Sorry to be a bother, but the problem was the I flipped the dw and dh values. My bad.

Posted on 2006-11-16 07:16:06


Displaying 1-2 of 2 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.