| Reply | « Previous Thread | Next Thread » |
|
Hi All,
I had to get another 3410 (got 3.06, 4.09 and 5.30 now) due to changes in the firmware (Thanks Nokia.. NOT). I create two images, one white and one black. White one was working but the black was.. eh.. white. This is the code: // create fully black tile defaultTileBlack= DirectUtils.createImage( 8, 8, 0x00000000 ); I debugged the code (JBuilder) and looked at the data created, and it looked the same for white and black !!! Anyway, I just added following: defaultTileBlack.getGraphics().setColor(0); defaultTileBlack.getGraphics().fillRect(0,0,8,8); And it works now (tested on all 3 firmware I have). I wonder how many games are broken with firmware 5.30 (not only because of this). But I bet it is a lot. Best, Sam Nova |
|
I debugged the code (JBuilder) and looked at the data created, and it looked the same for white and black !!!
Do you have some possibility to actually debug code running on your phone? What does one need for that? |
|
Sorry, no :(
No on device debugging on any Nokia device as far as I can tell. The problem I had also showed up on the emulator, and the same result on handset, made it a lot easier to work with. Too bad that there isn't emulators for each fimrware with all the errors in them. I could imagine someone getting a 5.35 (with this bug fixed) and the code will fail on many devices (same as the old problem with drawPixel and clipping.. new developers will have no idea about it). Guess Nokia is still 'looking into' creating a firmware bug database, but my bet is that we will never see it. So JBuilder and debugging with emulator only. best, Sam |
|
Code:
defaultTileBlack= DirectUtils.createImage( 8, 8, 0x00000000 ); So if the background was white, then the tile will look white. Try: Code:
defaultTileBlack= DirectUtils.createImage( 8, 8, 0xFF000000 ); |
|
You might be very correct in that. Never thought about that. Anyway, they changed the firmware AGAIN, since the code worked fine on the old firmware!!
Thanks, Sam |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|