Clownacy
4f7cc9582d
Revert "Backends: Added init/de-init messages for backends"
...
This reverts commit 9be8b9a493
.
2020-04-13 13:28:57 +01:00
Gabriel Ravier
9be8b9a493
Backends: Added init/de-init messages for backends
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 02:26:51 +02:00
Gabriel Ravier
53e2b715d4
Backends/SDL2/Misc: !x
-> x == NULL
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:19:35 +02:00
Gabriel Ravier
d0b8aef281
Backends/SDL2/Controller: !x
-> x == 0
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:18:19 +02:00
Gabriel Ravier
92d565692a
Backends: Use "SDL" instead of "SDL2" to match documentation vocabulary
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:16:45 +02:00
Gabriel Ravier
5ed34e73d4
Backends/Rendering/SDLTexture: Used Uint8
instead of uint8_t
to match SDL_SetRenderDrawColor
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:11:13 +02:00
Gabriel Ravier
4301fc613e
Backends/Rendering/SDLTexture: !x
-> x == NULL
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:10:15 +02:00
Gabriel Ravier
9ad14b897e
Backends/Rendering/SDLTexture: !x
-> x == NULL
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:09:30 +02:00
Gabriel Ravier
3f0d8b2e6f
Backends/SDL2/Window-Software: !x
-> x == NULL
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:08:26 +02:00
Gabriel Ravier
b58cfcdd2f
Backends/SDL2/Window-Software: Removed un-needed braces
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:05:37 +02:00
Gabriel Ravier
d41bf46c1a
Backends/SDL2/Controller: x
-> x != NULL
and removed unnecessary braces
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:04:23 +02:00
Gabriel Ravier
d870805068
Backends/SDL2/Controller: x
-> x != NULL
and fixed unequal braces
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:03:18 +02:00
Gabriel Ravier
a763984486
Backends/Rendering/SDLSurface: !x
-> x == NULL
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:01:38 +02:00
Gabriel Ravier
2feba10654
Backends/Rendering/SDLSurface: Invert if
and use != NULL
instead of implicit conversion to bool
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 01:00:44 +02:00
Gabriel Ravier
65e7164c42
Backends/Rendering/OpenGL3: Use != NULL
instead of implicit conversion to bool
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:59:02 +02:00
Gabriel Ravier
4d10c2cc21
Backends/Rendering/OpenGL3: Wrap both sides of if-else with {} equally.
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:58:09 +02:00
Gabriel Ravier
690a87dbfd
Backends/GLFW3/Controller: Wrap both sides of if-else with {} equally.
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:57:06 +02:00
Gabriel Ravier
77e00a9329
Backends/GLFW3/Controller: Use != NULL
instead of implicit conversion to bool
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:55:53 +02:00
Gabriel Ravier
1a5da443d7
Backends/Rendering/OpenGL3: Fixed OpenGLES2 compile
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:55:12 +02:00
Gabriel Ravier
27eb7d1788
Backend/Audio/SDL2: Replace puts
call with Backend_PrintInfo
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:49:22 +02:00
Gabriel Ravier
89fb2222b6
Backends/Rendering/OpenGL: Replaced printf with Backend_PrintInfo
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:46:05 +02:00
Gabriel Ravier
dcd4bcf1b2
Backends: Fix some of the error handling and replaced some printf calls
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:42:24 +02:00
Gabriel Ravier
5fc0f58525
Backends/SDL2: Finished up improving error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-12 00:24:30 +02:00
Gabriel Ravier
4127efb8f8
Backends/SDL2/Controller: Start improving error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-11 23:29:49 +02:00
Gabriel Ravier
f2b2c071a2
Backends/Rendering/OpenGL3: Improve error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-11 23:28:31 +02:00
Gabriel Ravier
16441ee87b
Backends: Improved miniaudio and GLFW3 error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-11 16:57:04 +02:00
Gabriel Ravier
0bd968d78d
Backends/Rendering/SDLTexture: Finish up improved error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-11 02:06:25 +02:00
Gabriel Ravier
affb645526
Backends/Rendering/SDLTexture: Continued work on error handling
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-10 23:19:57 +02:00
Gabriel Ravier
7f7c3d8434
Backends: Started adding a bunch of error handling stuff (error checking only done in SDL2 for now)
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-10 22:32:29 +02:00
Clownacy
ba069de70e
Fix window resizing
...
If you made the window square, the screen wouldn't be centered
properly.
2020-04-10 00:45:57 +01:00
Clownacy
ba4c9aa55f
Fix GLFW3-Software fullscreen aspect ratio
2020-04-09 20:42:10 +01:00
Clownacy
1f06027403
Added GLFW3 support for the software renderer
...
A few things need cleaning-up
2020-04-09 19:29:45 +01:00
Clownacy
0582fa93d1
Add extra failure error messages
2020-04-09 12:54:28 +01:00
Clownacy
41d5c5b5c8
Make it so Backend_Init
can fail
2020-04-07 17:46:02 +01:00
Clownacy
7d65d009ff
Replace leftover SDL_ShowSimpleMessageBox calls
2020-04-07 17:22:56 +01:00
Clownacy
aa7f7814d5
Make SDL2's Backend_ShowMessageBox print to console
...
Just in case SDL_ShowMessageBox doesn't work (no GUI)
2020-04-07 17:20:39 +01:00
Clownacy
f2950b085b
Fix potential NULL being passed to printf
2020-04-07 17:19:34 +01:00
Clownacy
0477b1b633
Merge branch 'accurate' into portable
2020-04-07 14:03:54 +01:00
Clownacy
409453a6a1
Note some null characters
2020-04-07 14:03:15 +01:00
Clownacy
f6377ae259
Fix SDL2 cursor
2020-04-07 13:53:45 +01:00
Clownacy
5395b00a95
Make some backend code safer
2020-04-06 20:05:15 +01:00
Clownacy
6456649e11
Pre-process audio in the software mixer
...
This should improve performance slightly
2020-04-06 19:52:53 +01:00
Clownacy
5daea02ac6
Change the audio backend API
...
Removes locking and unlocking: instead, samples are passed to Create.
2020-04-06 19:44:45 +01:00
Clownacy
40d0cf14f1
Remove invalid comments
...
These issues are fixed in this branch
2020-04-06 13:57:54 +01:00
Clownacy
12e4be58ac
Merge pull request #101 from GabrielRavier/fixPortableBugs2
...
Fixed a bunch of npc->cond = 0 bugs
2020-04-06 13:55:58 +01:00
Clownacy
10f389b52e
Merge branch 'accurate' into portable
2020-04-06 13:53:22 +01:00
Clownacy
ae66ede214
Merge pull request #105 from GabrielRavier/accuratePortableBugs2SisterPR
...
Noted a bunch of npc->cond = 0 bugs and gTS.data-related crashes
2020-04-06 13:51:52 +01:00
Clownacy
9fd95e720c
Whoops, remove a leftover std::
2020-04-06 13:49:57 +01:00
Clownacy
ba9ccec945
Change double to float
...
A quick test with godbolt shows this produces smaller (and presumably
faster) code.
2020-04-06 13:48:44 +01:00
Clownacy
545948584a
Different optimisation for software-mixer
...
`trunc` can resolve to a library call, while a cast-to-int doesn't
appear to. Since the mixer already does a cast-to-int when retrieving
samples, I can kill two birds with one stone.
2020-04-06 13:40:39 +01:00