alexbatalov / fallout2-ce

Fallout 2 for modern operating systems
Other
1.79k stars 123 forks source link

MacOS not properly scaling graphics. #386

Open fractalateral opened 6 months ago

fractalateral commented 6 months ago

Whenever I open the app, the actual game's graphics only take up about 1/3 of the screen's total size. This occurs in both windowed and fullscreen mode.

I have tried modifying every setting in the config files, and save for modifying the SCR_WIDTH and SCR_HEIGHT values in f2_res.ini (which yields a black screen upon launch), nothing changes the graphics scaling. (not even the SCALE_2X option)

I am running MacOS 14.5 Sonoma, on a Macbook Air 2022 with an M2 chip. I downloaded the latest build today.

iiKulakov commented 5 months ago

Same problem with Mojave + Wine + Fallout2-ce.

Screenshot 2024-06-06 at 5 11 18 PM

GRAPHICS_MODE=2 SCALE_2X=0 SCR_WIDTH=1440 SCR_HEIGHT=900 COLOUR_BITS=32 WINDOWED=0 WINDOWED_FULLSCREEN=0

Armaxxx commented 2 months ago

I might be able to help, but I'm not sure where to start, if any senior dev could provide some insight on the project I could solve this in a month maybe.

cambragol commented 2 months ago

I've had macOS scaling properly, though it doesn't matter in the end as you can see over the edges of the map. It doesn't implement things from sfall fully yet. Edge files don't work for one, and areas 'off' the map are not blacked out.

To make it really work, edge files and blacking out the outside areas of the map would need to worked in. The code needs to be brought over from sFall I believe, though I really don't know the details.

gruns commented 3 weeks ago

can reproduce:

image

f2ce v1.3. fallout sonora v1.13. os x 15.0.1 (24A348)

(huge, gargantuan thank you to you, @cambragol, for your efforts to translate and bundle fallout sonora 🙏)

cambragol commented 3 weeks ago

Try this:

Make sure the screen resolution is set to the same value in f2_res.ini and ddraw.ini F2_res controls the size of the window, and ddraw.ini controls the size of the game. I believe.

Also, @gruns your welcome!

cambragol commented 3 weeks ago

With these settings:

Screen Shot 2024-10-28 at 14 42 04

I get this:

Screen Shot 2024-10-28 at 14 46 52

With these settings:

Screen Shot 2024-10-28 at 14 42 27

I get this:

Screen Shot 2024-10-28 at 14 50 47

However, normally I don't use ddraw.ini and ddraw.ddl, so I get this:

Screen Shot 2024-10-28 at 14 44 19