You Are Here:

Community: Developer Discussion Boards

#1 Old Firmware error on 3410 5.30 : DirectUtils.createImage - 2003-10-17, 14:32

Join Date: Mar 2003
Posts: 78
Location: Switzerland
samnova
Offline
Regular Contributor
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
Reply With Quote

#2 Old 2003-10-19, 18:41

Join Date: Aug 2003
Posts: 134
dannyc4
Offline
Regular Contributor
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?
Reply With Quote

#3 Old 2003-10-19, 20:49

Join Date: Mar 2003
Posts: 78
Location: Switzerland
samnova
Offline
Regular Contributor
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
Reply With Quote

#4 Old 2003-10-20, 10:33

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
Code:
defaultTileBlack= DirectUtils.createImage( 8, 8, 0x00000000 );
Wouldn't this create a transparent tile? You are using 0 on the alpha channel.
So if the background was white, then the tile will look white.
Try:
Code:
defaultTileBlack= DirectUtils.createImage( 8, 8, 0xFF000000 );
shmoove
Reply With Quote

#5 Old 2003-10-20, 14:00

Join Date: Mar 2003
Posts: 78
Location: Switzerland
samnova
Offline
Regular Contributor
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ