-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Status Bar background removal and render resolution adjustment #37
Comments
I'm sure there's a better way to document and share what I've been up to, but I have only been handling code for about a week now and I'm trying to learn everything as I go. Oh and I realize this is absolutely not the intended use for this project, but if I can get this to accept custom HUDs that would be cool. Maybe a Hexen port? |
I appreciate the enthusiasm, and I am expecting the framerate to drop, but I won't know by how much until I get it running properly. I haven't done any testing on retail hardware yet, but plan to soon. |
I've been experimenting with this port in my own fork, /GBAminitest, so you can take a look at that to find your good code in a mangled mess.
Sadly I've run into/created a bug that I can't fix for the life of me. I am trying to remove the status bar background and make the game render in the full 240x160. I deleted the code that draws the stbar background, made the widgets refresh every frame, and made the renderer and gun sprite draw in the full resolution.
It was successful in removing the stbar background, keeping the stbar displayed at all times, and drawing everything on the full screen properly except for the floor textures in the lower 32 pixels.
So I did some digging, and found a suspicious table (yslope in tables.c) with a bunch of zeroes where I felt data could be. I deleted those zeros and injected my best guess to what a complete table would be, and got pretty good results in rendering floor textures for the entire screen, only now the lower 16 pixels seem to be drawing properly, but offset in some way, like a table has overflowed or something.
Any ideas?
PS: I know there must be much more elegant ways of accomplishing this, so any information or perspectives are invaluable to me.
Here are my working notes, following these instructions from where this distro (doomhack/GBADoom) is now (3 Jan 23) should recreate what I'm describing.
Removed 515-517 from st_stuff.c
-stbar bg removed, TITLEPIC showing underneath
Rmvd ST_SCALED_HEIGHT from 260, 261, 263 of r_hotpath.iwram.c
-renderer draws on the full screen but floor textures are a solid color for 16px stripe
-gun sprite still cuts off
-stbar only refreshes when face does
-treadmill effect on the floor
Removed ST_SCALED_HEIGHT from 279 from r_hotpath.iwram.c
-no change
Removed ST_SCALED_HEIGHT from line 72 of am_map.c
-no change
Changed false to true in 428 of st_stuff.c
-Keeps the stbar widgets refreshing
-Disables the text at the beginning though
tables.c: deleted 32 zeroes at the end of yslope, duplicated every 4th value
-top 128px seem fine, floor scrolls fine, bottom 16px are still weird
Changed 128 to 160 in 101 of r_draw.c
Removed ST_SCALED_HEIGHT from line 311 of st.lib.c
-Draws the gun as expected, bottom 16px still weird
Removed +16 from line 279 in r_hotpath.iwram.c
-No change
Deleted lines 393-427 from st_stuff.c
-status bar still updates normally
You can see all of this in my latest commits.
The text was updated successfully, but these errors were encountered: