|
|
Hi Guys, Or at least point to the place where it can be changed. |
|
|
As far as I know it is set in the LCDModlet class As well as in the start() method, it sets the width/height as properties. It is in package com.buglabs.bug.emulator.module.lcd, |
|
|
Excellent software design!!! Hard coded values in TWO separate places, instead of putting it in a configuration file....... public void start() throws Exception { Properties p = new Properties(); p.put("Module", "Virtual LCD Module"); moduleRef = context.registerService(IModuleControl.class.getName(), this, null); Dictionary props = new Hashtable(); props.put("width", new Integer("320")); props.put("height", new Integer("240")); moduleDisplayServReg = context.registerService(IModuleDisplay.class.getName(), this, props); } public Frame getFrame() { frame = new Frame(); frame.setSize(320, 240); frame.setResizable(false); return frame; } Which means I now have to download the source and completely recompile a class to change the screen size. and it's in: Eclipse/plugins/com.bugliabs.dragonfly.bug.kernel_1.0.0.266/kernel com.buglabs.bug.emulator.module.lcd.jar just incase anyone else should want to find it. |
|
|
Hi code_slave, Yeah good point, that stuff could use some clean up. I’ll file a bugzilla, thanks for the heads up. Note that if you’re looking to add a new module or display type you might be better off writing your own modlet. The code that Kevin referenced is intended only for the LCD module we are shipping on 3/17. |
|
|
Here is the bugzilla. Please add more if you find them! |
|
|
Hi guys, |