![]() |
|
#1
|
|||
|
|||
Problem with PNG backgroundHi there,
I'm developing applications based on v.1.1.3. The app draws some image buttons on a wallpaper. All graphic elements are provided in PNG format. But some images go disappeared when some button was pushed. Here goes the example. Use bg1(PNG) as background. Button b1,b2,b3 are lined from left to right. If b3 was pushed, b2 will disappear. It seems to be covered by redraw of background. So I create another background bg2 in JPG format to replace the PNG one, the buttons act normal now. Is it some bug in button or PNG classes? CPP / C++ / C Code:
|
|||
|
#2
|
||||
|
||||
Re: Problem with PNG backgroundQuote:
Quote:
Look at that, code tags on your first post. Rockin' ! If you want, you can zip up the images and attach them to your post. I will give your code a run on 1.1.8 then. BTW, what platform are you using? I can give it a run on WIN. No 'nix box with me here though... Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#3
|
|||
|
|||
Re: Problem with PNG backgroundThanks for the reply,
My target platform is a ARM9 SoC. The graphics engine below FLTK is NXLib+microwindows. It is said that NXLib has been test a lot with FLTK 1.1.3, that's why I start from this version. I also build a emulation platform on Linux and get the same result. I'll try a updated FLTK with NXLib+microwindows to see if it could correct the problem. The test PNG/JPG files are attached. You may give it a try, and thank you. |
|
#4
|
||||
|
||||
Re: Problem with PNG backgroundXP using CygWin and FLTK 1.1.current-svn (essentially 1.1.8)
Minor code changes. CPP / C++ / C Code:
I can click away and everything stays visible. See attached image. Hopefully the version change will help. If its platform, I can't help there. Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#5
|
|||
|
|||
Re: Problem with PNG backgroundThank you guy,
I'll keep trying with latest version. |
|
#6
|
|||
|
|||
Re: Problem with PNG backgroundThe problem is solved when I use latest FLTK 1.1.x. I think the 1.1.3 is not so compatible with libpng. So I use the local png library in 1.1.x instead.
I will put it to my ARM target platform to do more test. Hope it fine with it. |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| display problem in firefox and opera | batrsau | Web Design Forum | 4 | 09-Dec-2005 04:18 |
| Graphic problem in Unreal Tournament 2004 | zerox | Computer Software Forum - Games | 10 | 09-Oct-2005 13:31 |
| Runtime Problem involving "printf" in C Program | supamakia | C Programming Language | 2 | 09-Oct-2005 11:09 |
| a significant problem after installing Xp | mohammad | Computer Software Forum - Windows | 10 | 09-Aug-2005 08:03 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The