@guy, on Mar 16 2007, 11:47 PM, said in Change the resolution of mac windowed mode...:
To change the size of the window that mac Nova uses when running in windowed mode, open the EV Nova application in a hex editor (such as 0xED) and find the following offsets:
Width: 0x22C42E
Height: 0x22C432
Width should read 0340 (832) and height should read 025C (604). You can change these to whatever you like, such as 0400 (1024) and 0300 (768). Set the OS X Calculator to Programmer mode to work out hex values.
Yes! Now I can play our favorite TC in a window and not miss some of the intro text!
Interesting these offsets are in fact in the middle of PowerPC code (which, by the way, means it won't work for people who somehow run Nova with a 68k yes it has been done, if only by adventuring PC people running Basilisk before the advent of WinNova, I guess you could find the location where 0x0340 and 0x025C are close in the CODE resource/segment called "init"; in fact the same goes for WinNova, though I don't know the values you would need to look for as I don't know the windowed resolution for WinNova), probably the init code, these are just two immediates. Around it, there is code to check that the screen is big enough, apparently 832x604 is chosen only if the screen is more than 832 in width and 624 in height (an intermediate Mac resolution, beore 1024x768 was mainstream). If not, it checks whether it is more than 800 in width, and 600 in height, and chooses 800x580 if yes to both, and otherwise seems to compute a window size appropriate for the screen size. Notice that if you just change the values at two offsets Guy describes, they will be chosen as long as the resolution is more than 832x624, so if you pick 1024x768 because you have a 1280x800 monitor (the menu bar and title bar will only overlap by 8 pixels), and then change your monitor's resolution to, say, 1024x640, Nova will run in a window in 1024x768
By the way, HexEdit kick 0xED's ass. Small, frugal, efficient, with PowerPC disassembly what else could you ask for?
This post has been edited by Zacha Pedro : 20 March 2007 - 01:19 PM