Sylvain Becker
52176e25e1
DBus: add a reference to the connection
...
Fixed bug #6712
2022-12-14 17:58:57 +01:00
Sylvain Becker
c76a31341c
SDL_mfijoystick.m: remove VLA, so that projects can be built with error on vla
2022-11-24 16:08:38 +01:00
Sylvain
16824865c2
Cleanup of SDL_SetError that already return -1 value
2022-11-18 06:59:10 -08:00
Sylvain
3e70553c48
Unneed test before calling SDL_FreeSurface
2022-11-18 06:58:34 -08:00
Sylvain
71f2864b3a
Fix usage of sizeof() in test/testgles*.c files
2022-11-17 14:55:49 +01:00
Sylvain
89572af6a8
Fixed bug #6537 - AIX: use PAUDIO_WaitDevice
2022-11-17 11:43:46 +01:00
Sylvain
cd0d5a5fc5
Don't compare pointer against '0', but NULL
2022-11-17 11:23:15 +01:00
Sylvain
ddad901c0d
Remove unneeded semicolon
2022-11-17 10:43:45 +01:00
Sylvain
60c6cd554d
Fixed bug #6533 - PS2_JoystickUpdate: some invalid condition
2022-11-17 09:34:27 +01:00
Sylvain
b7358e47d5
Don't compare pointer against '0', but NULL
2022-11-17 09:18:49 +01:00
Sylvain
4192d1a1c7
Fix compilation. It needs to be casted to 'int' type
2022-11-16 21:56:19 +01:00
Sylvain
ce5da5d579
Don't compare pointer against '0', but NULL
2022-11-16 21:47:43 +01:00
Sylvain
1d7966df15
Remove un-needed check for NULL pointer. They were previously checked just before.
2022-11-16 21:27:16 +01:00
Sylvain
dfbb93dd0c
SDL_Renderer / GLES2: add specific list of indice to render rect (see #6401 )
2022-10-18 11:31:30 +02:00
Sylvain
e8a4c23ce5
Revert commit 790fa3156c.
...
SDL_BLENDMODE_INVALID case is probably used for custom blendmode
2022-10-18 10:45:01 +02:00
Sylvain
790fa3156c
Fix warning: enumeration value 'SDL_BLENDMODE_INVALID' not explicitly handled in switch
2022-10-18 10:41:10 +02:00
Sylvain
3ec4c9b3b9
Merge remote-tracking branch 'refs/remotes/origin/main'
2022-10-18 10:37:22 +02:00
Sylvain
3d99d31026
Fixed bug #6401 - back-end can choose the order the triangles when rendering rects, attempt to fix small glitch rendering.
2022-10-18 10:34:56 +02:00
Sylvain
285cbf6fdd
Revert commit 485bb3565b.
...
"Fixed bug #6401 - change the order of triangles when using RenderCopy, RenderCopyEx and RenderFillRect"
because the glitch reappears on other backend
2022-10-18 10:04:06 +02:00
Sylvain
485bb3565b
Fixed bug #6401 - change the order of triangles when using RenderCopy, RenderCopyEx and RenderFillRect
2022-10-17 13:30:30 +02:00
Sylvain
f69e004d01
Android default to dynamic API disabled (see #6381 )
2022-10-12 13:58:41 +02:00
Sylvain
f6ff87788a
Android default to dynamic API disabled (see #6381 )
2022-10-12 13:55:14 +02:00
Sylvain
fdef96e233
Android: remove "nativeSetComposingText" since it's not used anymore
...
(and it may fail registering at init if code is cleaned with proguard)
2022-10-04 12:08:09 +02:00
Sylvain
eac3d6d3c0
SDL_video.c: fix variable 'i' may be uninitialized when used here "_this->name = bootstrap[i]->name;"
2022-10-04 10:46:42 +02:00
Sylvain
d71df6448b
Fixed bug #6287 - SDL_FillRect failed for SDL_Surface with BitsPerPixel == 4
2022-09-27 10:21:15 +02:00
Sylvain
90a480a100
Fixed bug #6199 - Broken clip behaviour on a render target (metal)
2022-09-08 05:44:39 +02:00
Sylvain
03485db0a3
Android: understand HAL_PIXEL_FORMAT_BGR_565 as a returned value from ANativeWindow_getFormat() (see #6016 )
2022-09-03 23:40:14 +02:00
Sylvain
f815580dde
Fix SIGSEV in SDL_error. Re-apply same pattern on this uncompiled code (see #5795 )
2022-06-28 13:09:38 +02:00
Sylvain
d4e6047e3c
Fix SIGSEV in SDL_error (After removing the limit on the size of the SDL error message) (see #5795 )
2022-06-28 09:46:12 +02:00
Sylvain
314bb5a1ed
Fixed bug #5850 : Android EGL_BAD_ACCESS because of viewport command while turning the screen off/on.
2022-06-27 14:45:14 +02:00
Sylvain
2cc2260435
Fixed bug #5768 - SDL_RenderGeometry's software backend failed to render when texture coordinates are reversed
...
handle flip vertical/horizontal when reconstructing rects from triangles
2022-06-07 16:30:01 +02:00
Sylvain
6b9884d40a
Fixed bug #4213 - update documentation to reflect SDL2 behavior of SDL_RenderGetLogicalSize
2022-05-12 09:36:49 +02:00
Sylvain
1ede941f5c
SDL_render.c: internally change viewport/cliprect type from SDL_FRect to SDL_DRect (double precision). (see bug #5547 )
2022-04-18 12:26:32 -07:00
Sylvain Becker
1c9299b00d
Add SDL_list to macosx xcode
2022-04-01 08:12:31 +02:00
Sylvain
78834b50d6
Add SDL_list.c/h
2022-04-01 08:01:44 +02:00
Sylvain
ad6bc521bd
Move SDL_List functions to SDL_list.c to avoid more merge with eventual PR
2022-04-01 07:59:16 +02:00
Sylvain
bf38fd4679
YUV: fix invalid read on last line when converting from SDL_PIXELFORMAT_YUY2 (see bug #4841 )
2022-03-25 11:52:50 +01:00
Sylvain
6c56193a2a
Fixed bug #1650 : X11 doesn't set KMOD_NUM and KMOD_CAPS to system state
2022-03-24 18:09:45 +01:00
Sylvain Becker
c23a7ad38a
Add SDL_RenderGetWindow() API to get the window associated with a renderer ( #5440 )
...
Add SDL_RenderGetWindow() API to get the window associated with a renderer
2022-03-23 17:07:56 +01:00
Sylvain
f5a980448e
Android: add SetWindowResizable() implementation
...
- which also enable/disable the orientation lock status.
This is only provided when the window is not SDL_WINDOW_FULLSCREEN (see SDL_video.c).
Final orientation also depends on SDL_HINT_ORIENTATIONS.
2022-03-23 10:13:56 +01:00
Sylvain
83df4a354e
SDL_render.c: remove unsused case, since renderer target has been forced to NULL previously (see bug #4213 )
2022-03-22 15:25:01 +01:00
Sylvain
9dc201d448
Fixed bug #2962 - when SDL_RenderReadPixels format = 0, used format of the target texture
...
include/SDL_render.h, format:
"0 to use the format of the rendering target "
2022-03-21 10:41:14 +01:00
Sylvain
7f1feee02a
Fixed bug #2426 - SDL_RenderReadPixels result is unspecified and fails testautomation
...
Call SDL_RenderPresent after calling SDL_RenderReadPixels.
From "include/SDL_render.h":
"If you're using this on the main rendering target, it should be called after rendering and before SDL_RenderPresent()."
2022-03-21 10:20:04 +01:00
Sylvain
b2db570ce9
SDL_triangle_blit_slow: sync code with SDL_blit_slow to handle ARGB2101010
2022-03-16 18:09:40 +01:00
Sylvain
93e7caab9a
SDL_blit_slow: remove one nested 'if()' because of ARGB2101010 handling
2022-03-16 18:08:20 +01:00
Sylvain
56568ffb38
Remove 'reserved identifier' warning
2022-03-16 18:04:40 +01:00
Sylvain
90b13e1488
Merge remote-tracking branch 'refs/remotes/origin/main'
2022-03-15 17:50:57 +01:00
Sylvain
c44966b78b
Fixed bug #2691 - re-enable surface_testCompleteSurfaceConversion for ARGB2101010
2022-03-15 17:48:38 +01:00
Sylvain
f3e86b9fd3
Fixed bug #2199 : make SDL_blit_slow handles SDL_PIXELFORMAT_ARGB2101010, storing as RGBA
2022-03-15 17:46:12 +01:00
Sylvain Becker
3bebdaccb7
METAL: clip rect w/h must be <= render pass
2022-03-15 10:37:17 +01:00
Sylvain
0ad606b48d
Android: add comment to set render target to NULL when going to background (bug #4041 )
2022-03-14 10:43:18 +01:00
Sylvain
ea5b482bff
Remove unused warning
2022-03-09 15:38:36 +01:00
Sylvain
45833a148d
Prevent shadowing static variable '_this' with local paramter '_this' of SDL_CreateWindowTexture
2022-03-09 15:33:45 +01:00
Sylvain
a4a80c8607
Fix variable may be uninitialized when used here [-Wconditional-uninitialized]
2022-03-09 15:21:55 +01:00
Sylvain
04256a5372
Fix compilation (see #5313 )
2022-03-09 15:12:25 +01:00
Sylvain
9d86ec8573
Palette format: software Render Jitter in rotation (see #5143 )
...
- same fix applied for rotation with palette surfaces
- allow other 8bits format (eg 332)
2022-02-18 09:57:10 +01:00
Sylvain
ceb09ee740
Fixed #5143 - software Render Jitter in rotation
...
better precision calculating rotated coordinates and interpolation
2022-02-17 23:11:02 +01:00
Sylvain
75ffa24e3a
Software Render Jitter in rotation (bug #5143 )
...
The output surface doesn't necessarily to have even width and height.
2022-02-15 13:35:59 +01:00
Sylvain
61abc4e5b6
PSP: SDL_RenderCopyEx rotation and global scaling around the wrong way (see #bug 3070)
2022-02-15 11:34:50 +01:00
Sylvain
18b76fcc5d
Fixed bug #3070 - SDL_RenderCopyEx rotation and global scaling around the wrong way (software renderer)
2022-02-15 11:33:56 +01:00
Sylvain
e366ad1288
Fixed bug #2308 : SDL_RenderCopyEx rotation center precision (software renderer)
2022-02-15 10:02:34 +01:00
Sylvain
85e6500065
X11 Segmentation fault with multiple windows and renderers (see #5256 )
2022-02-11 11:08:08 +01:00
Sylvain
a75041e8dd
Fixed bug #2140 : basic support to convert 16 colors palette PIXELFORMAT_INDEX4, to allow conversion to SDL_Texture
2022-02-10 13:44:59 +01:00
Sylvain
5b41844c75
Fixed bug #5322 - register virtual input devices as SDL_Touch device, fix compilation
2022-02-09 09:50:41 +01:00
Sylvain
3a9bbf604e
Fixed bug #5322 - register virtual input devices as SDL_Touch device because
...
they can send SOURCE_TOUCHSCREEN events even if getSources() doesn't declare them.
2022-02-09 09:37:36 +01:00
Sylvain
59f1e2875a
Android: add debug function to display class/sources
2022-02-08 21:50:19 +01:00
Sylvain
2df2da11f6
Android: handleMotionEvent() is checking for SOURCE_JOYSTICK. So don't handle DPAD GAMEPAD (see #5322 , #2718 )
2022-02-08 17:51:40 +01:00
Sylvain
1fc5dba3d5
Android: test for SOURCE_KEYBOARD / SOURCE_MOUSE. Don't compare to 0, since there are several bits (see #5322 , #2718 )
2022-02-08 17:41:17 +01:00
Sylvain
f185711203
Fixed bug #5310 : Android, Undefined reference to AAssetManager_fromJava
2022-02-08 16:18:01 +01:00
Sylvain
68dd84f1de
Android: TouchDevice -1 is reserved for SDL synthetic devce (See #5322 )
2022-02-08 11:42:24 +01:00
Sylvain
94e5c3f30e
testgesture: display device name with SDL_GetTouchName()
2022-02-08 11:40:39 +01:00
Sylvain
e7e44df039
Dynapi: add SDL_GetTouchName() entry
2022-02-08 11:34:41 +01:00
Sylvain
34d4f5b14e
Fixed bug #2032 : add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!)
2022-02-08 11:32:20 +01:00
Sylvain
14bc3bf4ec
Android: fix typo to register TOUCHSCREEN device (see #5322 , #2718 )
2022-02-07 22:20:05 +01:00
Sylvain
b0dd4c7d36
SDL_Render OpenGL: do batching like in the GLES2 backend (with no VBO)
2022-02-07 14:02:20 -05:00
Sylvain
90f0d2ce49
Revert OpenGL point drawing performance, do to proper batching
2022-02-07 14:02:20 -05:00
Sylvain
df0d696a62
RISCOS: attempt to fix compilation ERANGE
2022-02-02 15:22:14 +01:00
Sylvain
87b02d3795
Linux thread name limitation: test for ERANGE (see bug #5283 )
2022-02-02 15:09:29 +01:00
Sylvain
220a9596f3
Remove testing instruction (see bug #5283 )
2022-02-02 10:01:11 +01:00
Sylvain
9e46a512b1
Fixed bug #5283 - limit thread name to 16 characters when using pthread_setname_np()
2022-02-02 09:58:15 +01:00
Sylvain
d46cc18afc
Fix function comment
2022-02-01 11:35:26 +01:00
Sylvain
d224a63bda
Fix compilation for non Android
2022-02-01 11:34:01 +01:00
Sylvain
fe2ed6cf6f
Fixed bug #5221 - Add SDL_AndroidSendMessage()
2022-02-01 11:30:43 +01:00
Sylvain
f7d3abddba
Fixed bug #964 - SDL_RenderCopy stretch loses proportion on viewport.
...
Handle the case when there is blending
2022-01-29 10:19:08 +01:00
Sylvain
f5911bdc59
GLES2: disable texcoord when not using it (see bug #5235 )
...
similar to opengl backend code:
- glDisableVertexAttribArray doesn't need to depend on 'drawstate.texture' value
- move binding code to SetCopyState()
2022-01-28 19:25:40 +01:00
Sylvain
096fe37bb2
GLES2: revert https://github.com/libsdl-org/SDL/commit/7bf8c5a388bc41dde830e4baabcb53d507e64448
2022-01-28 19:25:40 +01:00
Sylvain
a988ce5544
Fixed bug #964 - SDL_RenderCopy stretch loses proportion on viewport boundaries
2022-01-28 17:24:59 +01:00
Sylvain
7bf8c5a388
GLES2: disable texcoord when not using it (see bug #5235 )
2022-01-27 21:49:05 -05:00
Sylvain
8c660ccb6f
Fixed bug #5256 : X11 Segmentation fault with multiple windows and renderers
...
First window is created and it triggers and 'EnterNotify' event
which calls SDL_SetMouseFocus() and X11_ShowCursor() while the second
windows hasn't finished to be created (eg window->driverdata isn't set)
Just check for a valid 'driverdata'
2022-01-25 17:18:40 +01:00
Sylvain
3cdda8f8ab
PSP: use 'data' variable which is alread the driver data
2022-01-08 21:58:26 +01:00
Sylvain
9cb2c549fa
Remove QueueDrawLines from D3D, D3D11
2022-01-07 14:10:23 -08:00
Sylvain
b88b6b3c23
Remove QueueDrawLines from METAL
2022-01-07 14:10:23 -08:00
Sylvain
9aac55317d
Remove QueueDrawLines from GL, GLES, GLES2
2022-01-07 14:10:23 -08:00
Sylvain
8ea8b2e697
Use QueueDrawLine if provided, otherwise use RenderGeometry
2022-01-07 14:10:23 -08:00
Sylvain Becker
c498727471
render: Use RenderGeometry to draw lines
...
This patch is from @1bsyl
Fixes #5061 .
2022-01-07 16:14:28 -05:00
Sylvain
8622eda9e9
SDL_RenderGeometry / software: TRIANGLE_GET_TEXTCOORD interpolates up to the max values included, so reduce by 1
2022-01-02 22:34:56 +01:00
Sylvain
a1e992b110
Fixed bug #5118 - [Android] PointerIcon leak in Cursor API
2021-12-21 22:07:17 +01:00
Sylvain
44c84c0d8e
GLES2/Big-endian: don´t swap datas for yuv textures (Thanks 0x1F9F1 !)
2021-12-17 17:44:34 +01:00
Sylvain
3a69828e87
Fixed GLES2 back-end on Big Endian Platform (see #5093 )
2021-12-17 13:15:39 +01:00
Sylvain
3d5fcb5da6
Fix warning
2021-12-16 09:19:53 -08:00