Commit Graph

236 Commits

Author SHA1 Message Date
dinkc64 2fd36bd68a HardFX test fixes; 1: init properly, 2: fix bad rounding 2025-08-17 01:28:45 -04:00
barbudreadmon ffc75d7eeb Revert "vid_directx9.cpp: clear buffer before rendering"
This reverts commit ee91d5ada9.
2025-06-03 06:31:44 +02:00
barbudreadmon ee91d5ada9
vid_directx9.cpp: clear buffer before rendering 2025-06-02 10:36:15 +02:00
fprietog 2c88754bf3
Added option to save snapshots directly to support folders: titles with SHIFT+F10 and previews with SHIFT+F11 (#2038) 2025-05-17 09:09:10 -04:00
dinkc64 ceafa088c1 init COM/OLE @ startup for xaudio2/browse dialog 2025-05-15 09:29:24 -04:00
dinkc64 f46a704260 add Integer Scaling feature (under "Video -> Stretch") 2025-05-03 01:37:20 -04:00
dinkc64 a3e2aff5eb hardfx, fix flipped issue 2025-04-10 20:14:35 -04:00
barbudreadmon 6cd5d7549c
also fix sdl1 port 2025-02-27 12:09:00 +01:00
grolliffe a9501ffae2
Add SDL2 set window scale command line option (#1926)
In the SDL2 front end, the window is scaled to * 2 the game screen
resolution. Whilst this works find for raster games on normal DPI
monitors it doesn't work so well for :-

- raster games on HiDPI displays where the window appears too small.

- vector games where the window appears too big.

This change allows the user to specify a window scale at the command
line. It defaults to * 2 for backward compatibility with the old
version.

Full screen and window resizing via dragging is not affected by this
change.
2024-12-03 18:34:43 +01:00
dinkc64 cdb93c9667 ull some long jibby-jab for iq_132 2024-11-04 20:33:36 -05:00
dinkc64 d5a563ca72 fix compile ish for Mucci 2024-10-31 09:00:43 -04:00
dinkc64 ddc5fde116 Add ability to configure live shader parameters (dx9 alt -> Hardfx -> settings).
see HardFXConfigs[] in src/intf/video/win32/vid_directx9.cpp
float4 user_settings; in hlsl shader
2024-10-29 01:25:24 -04:00
dinkc64 508178d117 add retro scanlines shader to the dx9-alt list 2024-10-24 01:30:19 -04:00
dinkc64 74a1872d04 dx9, rare crash with reinit / screen resize 2024-09-27 02:11:02 -04:00
dinkc64 4fb89e0b7b add borderless windowed fullscreen mode from fc 2024-06-23 09:34:12 -04:00
dinkc64 f1e07117e3 fix for hq3xs 2024-06-19 00:28:58 -04:00
dinkc64 566018c757 fix softfx scaler hq3xs 2024-06-17 23:52:52 -04:00
dinkc64 b674a59ada neogeocd: fix Puzzle Bobble 2023-06-27 01:01:15 -04:00
dinkc64 4db5799c9d d3d7 blitter (enhanced), fix 'gets stuck in slow-mode (half-fps)' after using basic or softfx blitter 2023-05-16 09:56:45 -04:00
dinkc64 bfb5850804 crt 2x2 fast fix from Kannagi 2023-05-13 09:23:22 -04:00
dinkc64 d45e605463 64bit softfx stuff 2023-05-12 20:59:31 -04:00
dinkc64 0ec587db44 scale2x, use the c version for compatibility's sake 2023-05-12 20:26:38 -04:00
dinkc64 36442658cb test 2023-05-12 17:32:38 -04:00
dinkc64 a0499b1e18 update soft-fx for Kannagi's CRT Filters 2023-04-23 09:14:02 -04:00
dinkc64 9ad98cba40 win input, mouse axis direction as digital input impl. 2023-02-28 10:10:01 -05:00
dinkc64 f133cbfd7d inp_interface: key/joy sliders: fix laggy slider centering 2023-01-13 21:07:10 -05:00
dinkc64 cf277de7b8 oops #2 2022-11-15 00:14:11 -05:00
dinkc64 fac5b7b7ab inp_interface give reset latch a home 2022-11-14 10:17:36 -05:00
dinkc64 616d1c4c8d inp_interface.cpp, oops 2022-11-14 09:36:32 -05:00
dinkc64 51ffd5c598 burner/gami.cpp, gameinp.h: resolve inputs to macros 2022-11-14 09:27:38 -05:00
taoenwen 06f395f440
win32: add reset menu (#1233) 2022-11-13 16:43:20 -05:00
dinkc64 16bc8e528e improve trackball response when using mouse. (cabal, shufshot, centipede, ghox et al) 2022-09-30 23:50:48 -04:00
cjom 46c5540e68
SDL2: Input mapping menu with macros and autofire (#1174)
We can now define input defaults for any player, any game, together with keyboard/joysticks mapping.

Macros are also supported.

Autofire supported and added a menu to set fire rate.

Also some code optimizations in startup and controllers config.
2022-09-23 20:31:14 -04:00
dinkc64 ec528bbd24 crt update [Kannagi] 2022-08-28 09:32:24 -04:00
dinkc64 d7853cb501 add SoftFX CRT filter by Kannagichan 2022-08-28 00:31:16 -04:00
cjom 0e263b11ec
SDL2: Fix fullscreen not centered or distorted (#1143)
Fixed:
- image would not be centered when going from window mode to full screen;
- window would be bigger than screen when exiting full screen mode.

Also done some code cleanup (mainly avoiding repetitive if tests).
2022-08-19 20:04:14 -04:00
dinkc64 31980dee9b dx9 hardfx shader error message [voodoo84] 2022-07-24 18:36:26 -04:00
cjom ee23ac26ae
SDL2: fix games getting upside down after playing a game with BDF_ORIENTATION_FLIPPED flag (#1113)
Also two minor changes that may prevent potential issues.
2022-07-20 17:31:35 +02:00
cjom 61b60205d8
SDL2: fix loading inputs from *.ini (#1107)
Fixed inputs always being reset to defaults (ignoring custom inputs from <romname>.ini).

Also fixed loading presets when <romname>.ini does not exist.

Note: -joy parameter will always ignore inputs from *.ini and set joystick inputs for all players.
If the -joy parameter is used when a game is launched for the first time, player 1 inputs will be set to joysticks and won't work without -joy after that, because without -joy the keyboard is assigned to player 1.
2022-07-15 08:58:26 -04:00
cjom 3cb828946a
SDL2: Fix black screen when some games resize screen (#1097)
Tested:
- Wide screen DIP switch in sfiii.
- megadrive games - Micro Machines and Mortal Kombat 1, 2, 3 and 5.
2022-07-06 20:16:07 +02:00
cjom a1b2e3ecc3
SDL2: DIP switches ingame menu; also add Reset Game to ingame menu (#1089)
DIP switches menu working, similar to cheats menu, with check boxes and different color for changed DIPs.

Note: if we exit game with changed DIPs, those are saved in <romname>.ini and become the default values in future runs. Deleting <romname>.ini restores real default DIPs.

Also added a new option in ingame menu: Reset Game.
2022-06-26 09:14:28 -04:00
cjom 7d4b9ec3cc SDL2: add a simple controller buttons mapping menu
It is now possible to map joysticks buttons or remap game controllers buttons in ingame menu.

A file named gamecontrollerdb.txt is created in config folder (where fbneo.ini is) and loaded when fbneo starts.

It is possible to manually create or edit gamecontrollerdb.txt (for example, to change controller name).
2022-06-23 15:01:03 +01:00
cjom fe3546ef50 SDL2: fix and improve menus navigation with controller
Fixed UP and DOWN jumping two lines at once in games list when using DPAD.

Fixed controller not working when returning to games list after playing any game.

Improved games list and ingame menu navigation using game controllers / joysticks - LEFT/RIGHT jumps 10 lines; gamepad buttons can be used to filter games and other functions.
2022-06-22 19:28:15 +01:00
cjom ab76616349
fbneo sdl2: enabling cheats in ingame menu (#1079)
* SDL2: Add scrolling and dynamic title to ingame menu, plus correct aspect ratio

Some games have big list of cheats that won't fit on screen, so scrolling is needed.

Dynamic menu title helps navigation, particularly when going into sub menus.

Corrected aspect ratio of game screenshot shown in ingame menu.

Also, game screenshot is only shown in top menu, as it can make difficult to read menu's options.

* SDL2: enable cheats in ingame menu

Cheats menu is now populated and working in the ingame menu.

(conc.cpp) Also ignore carriage return chars when parsing cheats *.ini
2022-06-21 23:59:11 -04:00
dinkc64 b0702a9984 fix broken fullscreen resolution error message 2022-06-13 20:48:45 -04:00
dinkc64 13e3fa927d maybe fix all builds with this? 2022-05-22 09:50:02 -04:00
dinkc64 119abd34a9 build break, fix build break build v2 2022-05-22 09:46:25 -04:00
dinkc64 d79e6f78ab interface.h, test build fix 2022-05-22 09:31:09 -04:00
dinkc64 763bbf81d3 xaudio2, match directsound volume 2022-01-23 23:27:21 -05:00
BeWorld 8b552dc45d
SDL2: enhanced (#910)
* SDL2: fix SDL_Quit

- main.cpp: no more need BurnLibExit and SDL_Quit because always exit on "Bye" function called by aexit
- main.cpp: add SDL_INIT_GAMECONTROLLER
- vid_sdl2.cpp: clean and put printf into FBNEO_DEBUG
-  clean and put printf into FBNEO_DEBUG

* SDL2: SDL_GameController enhanced

If use SDL_GameControllerOpen, need SDL_GameControllerClose
2022-01-07 09:22:04 -05:00