Open ghost opened 13 years ago
I've modified the Assembler to scale with window resize. It has some jitters when shrinking it that I can't track down, however.
I've modified the CPU Emulator to scale with window resize. Not sure if I broke the 'bus' object responsible for animation though. Couldn't test it.
Okay. Assembler, CPU and VM tools all now support window resizing. There are two issues: 1) I cannot see the script contents, when I select 'script' through the gui for both CPU and VM tools 2) After resizing the window, the screen is enlarged. It shows pixels beyond what the Hack Computer actually has. For example, when I play the game of Snake, it looks like the world the snake can travel in is much larger than it actually is. There's more white space beyond what the computer considers as the edge. This is in both CPU and VM tools.
Fixed item number 2 listed above. The screen no longer grows in size with the size of the window. Item number 1 still open.
Fixed issue number 2. Screen, script, output and, compare windows now show up and are well behaved. Script, output and compare windows still have a fixed size, which will need changed in the future. The screen window, however should remain fixed (as the hack computer only has so many pixels).
One issue that needs to be looked into is animation in the VMEmulator misses its targets for RAM after the whole window has been resized. We have not been able to test the CPUEmulator as the code isn't in a working state for that simulator when we started our modifications. We anticipate that similar animation errors will crop up for the CPUEmulator too.
The HardwareEmulator has yet to be modified to take advantage of the resizing.
"One issue that needs to be looked into is animation in the VMEmulator misses its targets for RAM after the whole window has been resized."
The animation is not only missing the RAM, but any component that moved/grew with the window resize.
The tools has been built to run at a specific resolution and do not allow for intelligent resizing.