|
Rotating problem... |
Marton
Member #7,173
April 2006
|
I have a problem rotating a bitmap. This is the code: --- set_gfx_mode(GFX_AUTODETECT, 320, 200, 0, 0); datafile = load_datafile("test.dat"); if(rotate) { Thanks!!! |
Ceagon Xylas
Member #5,495
February 2005
|
First off, don't forget about the code tags. ... temp = create_bitmap(200,320); blit(datafile[3].dat, bitmap, 0, 0, 0, 0, 200, 320); rotate_sprite(temp, bitmap, 0, 0, itofix(64)); blit(temp, screen, 0, 0, 0, 0, 320, 200); //you created temp with 200x300... why change that to 320x200 here? ...
It may be safer, but bulkier, to use this from now on:
[edit] rotate_sprite(temp, bitmap, 0, 0, itofix(64)); //should be rotate_sprite(bitmap, temp, 0, 0, itofix(64)); Usually, when you see that chaotic ugliness as bitmaps, it means nothing has been drawn to them yet. They either need to be cleared or drawn over. |
|