I fearlessly tracked down the properties files in C:\Nokia\Devices\S40_6th_Edition_SDK, and opened them to edit the screen resolution, as it is running at 240 x 480 pixels... and my little Nokia 6700 screen runs at 240 x 320 pixels.
Yes, I know I should have a program that displays at any available resolution - but if I can shrink it down, not only will I see what the applet looks like on my phone, but the emulator will run a bit faster.
"Ahha!", says I. Human readable uei.properties file!
I quickly edited the file, and saved it:
I wonder what the .screen.canvas.? section does?Code:S40_6th_Edition_SDK.model: Series 40 6th Edition SDK S40_6th_Edition_SDK.description: Series 40 6th Edition SDK S40_6th_Edition_SDK.version.profile: MIDP-2.1 S40_6th_Edition_SDK.version.configuration: CDLC-1.1 S40_6th_Edition_SDK.screen.width: 240 S40_6th_Edition_SDK.screen.height: 320 S40_6th_Edition_SDK.screen.canvas.x: 0 S40_6th_Edition_SDK.screen.canvas.y: 40 S40_6th_Edition_SDK.screen.canvas.width: 240 S40_6th_Edition_SDK.screen.canvas.height: 320 S40_6th_Edition_SDK.screen.isColor: true S40_6th_Edition_SDK.screen.bitDepth: 16 S40_6th_Edition_SDK.screen.isTouch: false
Still wondering, but carrying on as I have a task to complete, I opened S40_6th_Edition_SDK.properties too:
I edited the bit in bold and saved it again.Code:device.model: Series 40 6th Edition SDK device.screen.width: 240 device.screen.height: 320 device.screen.canvas.x: 0 device.screen.canvas.y: 40 device.screen.canvas.width: 240 device.screen.canvas.height: 320 device.screen.isColor: true device.screen.numColors: 16777216
I fired up a couple of dependable demos, and, good grief! The canvas appears to jump up and down the emulator window, between the gap the image resize has created in the emulated phone display.
I tried another demo of some bouncing balls, and it ran very slowly, and covered the entire screen. Eek!

Reply With Quote

