Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / copy bitmap *bug*?

Author
Message
Shock
AGK Developer
23
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 26th Jul 2003 20:16
Hi there,

This maybe a bug but im not sure, it might be me doing something stupid somewhere. Anyway, you might want to test this out.

I am creating 3 bitmaps, and then copying a different bitmap onto them. To do this i'm using a FOR/NEXT loop.



Seems simple enough so far yeah?
Now the fun begins, you would of thought with the code above, i'd end up with 4 identical bitmaps (the old one, with three new ones).
What I did end up with is a perfect old (copied from) bitmap, and two nice perfect new ones. Bitmap number seven has turned to be an exact copy of bitmap 0 (the screen).

This can easily be fixed, by creating an eigth bitmap, changing the code to



Now number seven is a perfect copy of number 11, however 8 is now a useless copy of bitmap zero (but i dont need it so i dont care lol).

I hope that all made some sort of sense lol. If it is a bug, it can easily be worked around as shown above, but still should be brung to the attention of the db team.
...::::ShockForge::::...
Shock
AGK Developer
23
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 26th Jul 2003 20:18
(P.S., im quite new to bitmaps and all, i normally make everything in 3D lol. So it could just be me being stupid).

...::::ShockForge::::...
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Jul 2003 20:33 Edited at: 26th Jul 2003 20:33
I've tried it out myself, and I get no problems ... but I'm using the Update 5 beta.

This means, it's either a DBPro bug that's fixed, or it's you

Here's the text code I've thrown together - try running it and see what you get.

spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 26th Jul 2003 20:40
Works for me in P4.1

I think we need to see rest of code that you use to display the created bitmaps as that is probably where problem is.

The programmer formerly known as sonic
Shock
AGK Developer
23
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 26th Jul 2003 20:57
Your right, its a crap up in the code somewhere else. I wont bother with it though, i'll just use "5 to 8", it's only a small game, and all that will be 2D is the menu system

...::::ShockForge::::...

Login to post a reply

Server time is: 2026-07-23 00:45:59
Your offset time is: 2026-07-23 00:45:59