Commit Graph

607 Commits

Author SHA1 Message Date
Amaryllis Kulla ab24f0fc74 Update copyright notice again
Keep information on first file creation year,
and update my email address yet again.
2023-10-05 21:27:15 +02:00
Amaryllis Kulla a651639524 Bitmap: Add #v_flip / #h_flip methods 2022-02-01 21:53:26 +01:00
Amaryllis Kulla 1c2dc115b8 Graphics: Reset scissor box on screen resize
Fixes Ancurio/mkxp#248.
2022-02-01 21:53:26 +01:00
Amaryllis Kulla 3c6bc765c6 EThread: Map mouse buttons 8,9 onto X1,X2
This makes the thumb button on my mouse usable under Linux,
still have to check what button code they map to under Windows.
2022-02-01 21:53:26 +01:00
Amaryllis Kulla d71919c2c3 Bitmap: Fix getPixel calls not using cached surface 2022-02-01 21:53:26 +01:00
Amaryllis Kulla e156421b3b Input: Expose mouse X1 and X2 buttons 2022-02-01 21:53:23 +01:00
Amaryllis Kulla 1856e677a3 Bitmap: Add ::writeToPng() 2021-12-07 07:21:33 +01:00
Amaryllis Kulla a92adee7f8 EventThread: Add 'recenter' parameter to window resize request
If true, centers the window on the current screen with the
new size.
2021-12-07 07:21:33 +01:00
Amaryllis Kulla 94009441be Graphics::resizeScreen(): Remove upper bound 2021-12-07 07:21:33 +01:00
Amaryllis Kulla e32aa71f4b Add Input::scrollV() to query vertical mouse wheel scroll events 2021-12-07 07:21:33 +01:00
Amaryllis Kulla 9cadb91ed1 Graphics: Implement native integer scaling 2021-12-07 07:15:18 +01:00
Amaryllis Kulla f6db7be538 Config: Add integer scaling options 2021-12-07 07:15:18 +01:00
Amaryllis Kulla ca71e6ecb7 windows: Mark app as high-dpi aware 2021-12-07 07:15:18 +01:00
Ancurio a91acbe6ef Graphics: Pump steamshim in ::update 2021-10-06 23:43:55 +02:00
Ancurio b165638fb3 FileSystem: Throw exception if openReadRaw fails 2021-10-06 23:43:16 +02:00
Ancurio 45a967b3cd GlFunctions: Add driver info to error message 2021-10-06 23:42:40 +02:00
Ancurio 6d5a021f04 Main: Request us to be run on dedicated GPU 2021-10-06 23:41:35 +02:00
Ancurio 9cf5ee54e0 Audio: Allow adjusting BGS and SE volumes via mkxp.conf 2021-09-30 00:28:37 +02:00
Ancurio 24efc4d2f2 Remove console spam 2021-09-29 18:02:43 +02:00
Ancurio 5e3907c7f8 SharedFontState: Add 'defaultFontFamily' property
Some scripts may end up ignoring RGSS-side defaults and just
requesting invalid / empty family names; in this case
the internal default family will be substituted.
2021-09-28 10:37:09 +02:00
Ancurio 3d6b7d3b75 Revert "FileSystem: Allow ::openReadRaw() to break out of game directory"
This reverts commit d45a400227.
Causes memory corruption in its current state.
2021-09-27 18:32:47 +02:00
Ancurio 350a0e31ca Keybindings: Add ZXC -> ABC bindings 2021-09-26 05:12:05 +02:00
Ancurio d45a400227 FileSystem: Allow ::openReadRaw() to break out of game directory
If PhysFS fails to open a path, fall back to simple FILE* handles.
Not sure yet if this is a good idea, but from observation
RMXP allows load_data() to operate on paths outside the game
directory as well, so we have to support this.
2021-09-24 06:30:56 +02:00
Ancurio 7938a07539 Adjust (default) keybindings for Freebird Games 2021-09-24 06:30:56 +02:00
Jaiden fb09fa1d0c Update glstate.cpp
Fixes the GL blend formula for Subtractive blending
2021-09-24 06:30:55 +02:00
Ancurio f3b4ab62a5 Update copyright notice 2021-09-24 06:30:55 +02:00
Jari Vetoniemi dfa25a2524 Compile with newer openal-soft 2021-09-24 06:30:55 +02:00
Jonas Kulla c5d94d9d8b FileSystem: Check PHYSFS_registerArchiver() for success 2021-09-24 06:30:55 +02:00
Jonas Kulla c0c2a5287e FileSystem: Check PHYSFS_init() for success
Move it above the allocations so exceptions don't leak memory.
2021-09-24 06:30:55 +02:00
Jonas Kulla 30ade2c240 Sprite: Define M_PI manually
Apparently (older?) mingw-w64 with C++11 enabled doesn't have it.
2021-09-24 06:30:55 +02:00
Jonas Kulla 422c76328b fluid-fun: Define destructor signature based on fluidsynth version
As per @carstene1ns 's suggestion.
2021-09-24 06:30:55 +02:00
Jonas Kulla 9733876c01 fluid-fun: Adjust function signature to fluidsynth 2.0
This breaks compilation with FLUID_SHARED against <2.0 versions,
which should be reasonable given that the default mode can still
dynamically load both variants.

Fixes #219.
2021-09-24 06:30:55 +02:00
Luis Caceres eb037a3779 Config: Add case-insensitive ini file parser 2021-09-24 06:30:55 +02:00
Eliza Velasquez b8c3e74275 Fix font enumeration
Currently, the font enumeration callback erroneously stops searching if
it finds any files that aren't fonts. In the case that you have, say, a
desktop.ini or a .DS_Store or a license file, it may prevent all of the
fonts from being loaded. This commit resolves this.
2021-09-24 06:30:55 +02:00
Jonas Kulla b10d22daeb Graphics: Fix transition when new scene has gray tone effect
Rendering the scene may cause PingPong swaps of front / backbuffer,
so don't take references to those buffers until after rendering.

Fixes #199
2021-09-24 06:30:55 +02:00
ReinUsesLisp 7d6fbe637c Config: Set debug editor's debug variables into ruby 2021-09-24 06:30:55 +02:00
Jonas Kulla 1b358a27a0 FileSystem: Fix while termination condition 2021-09-24 06:30:55 +02:00
Jonas Kulla a082074f16 Merge branch 'master' of github.com:ancurio/mkxp 2017-12-12 22:50:10 +01:00
Jonas Kulla 183ebbed65 RGSSAD: Fix parsing of top level directory entries
We were spamming every path into the hash (including the top
level ones) without noticing... oh well.
2017-12-12 22:46:25 +01:00
Jonas Kulla 7902d0942d Filesystem: Properly iterate top level dir entries
"." seemed to have worked in earlier PhysFS versions,
but it was never the correct way.
2017-12-12 22:45:01 +01:00
Jonas Kulla 947974cac6 Config: Properly use windowTitle everywhere instead of game.title 2017-12-12 17:57:02 +01:00
Jonas Kulla 646786ef93 Merge branch 'master' of github.com:ancurio/mkxp 2017-12-11 21:23:03 +01:00
Jonas Kulla 7d9a85dbbd Config: Add entry to override the game window title 2017-12-11 00:48:35 +01:00
Carsten Teibes d427df0c2b Adapt RGSS archivers and filesystem to physfs 3.0 API 2017-10-12 14:27:19 +02:00
Jonas Kulla f172f58c74 Sprite: Fix regression with "mirror" attribute
FloatRect::hFlipped() returns a rectangle with negative width,
which was clobbered by the clamping further down.

Regression introduced in 55cec53911.
2017-08-10 21:39:17 +02:00
Jonas Kulla fba20e6294 Sprite: Check for disposed state before accessing bitmap 2017-07-30 23:00:18 +02:00
Jonas Kulla 91f042197b Merge branch 'master' of github.com:ancurio/mkxp 2017-05-11 12:53:12 +02:00
Jonas Kulla bd694f9f99 Graphics: Remove superfluous TEXFBOs while reusing existing ones
While the PingPong buffers were always texture-backed, currentScene
and transBuffer used to be backed by renderbuffers, which might have
been more optimized as render targets on older hardware; but since
all buffers in Graphics got switched to being texture backed to allow
blitting via rendering (when hardware blitting isn't available or broken,
eg. on mobile platforms), their reason to exist vanished.

For transBuffer, we can reuse the backbuffer of the PingPong structure,
while currentScene might have been useless from the start.
2017-05-11 12:37:15 +02:00
Jonas Kulla cab453ac3a Graphics: Use proper resizing function for TEXFBOs
Manually resizing the contained TEX objects skips updating the
width/height TEXFBO properties, which GLMeta::blit relies on.
2017-05-11 12:32:56 +02:00
Jonas Kulla ecc4a30997 Merge branch 'master' of github.com:ancurio/mkxp 2017-04-23 14:38:13 +02:00