Sam Lantinga

Results 1875 comments of Sam Lantinga

> My plan was to implement https://pubs.opengroup.org/onlinepubs/9699919799/utilities/dirname.html and https://pubs.opengroup.org/onlinepubs/9699919799/utilities/basename.html > > Here are some free test cases: https://pubs.opengroup.org/onlinepubs/9699919799/functions/basename.html#tag_16_32_06_02 > > And do the necessary to support windows dos and UNC...

@madebr, just double checking, did you want this in for the SDL 3.0 ABI milestone?

Make sure you read before you call SDL_RenderPresent(). Also, this is going to be incredibly slow. You should use some other way of tracking collision for your game.

What platform are you running on and what renderer is being used?

Can you post a simple example or a modification to the SDL tests that shows this bug?

FYI, the pitch is defined as the number of bytes between rows of your image, so in your case you shouldn't use the SDL_CalculatePitch() function, instead the value would be...

Reading the surface back is going to be a performance problem later, but your issue is fixed in SDL3. Here's your sample, converted to SDL3: ```c #include #include SDL_Window *window...

This hint isn't actually relevant for display scaling handling. There's a FIXME in WIN_SetEnhancedMouseScale() wondering if we need do anything for displays with different DPI and/or display scale.

They're in window coordinates, which are pixels on Windows and Linux, and points on macOS.

> Is my understanding in the following table correct? > > * 3840x2160 physical monitor resolution > * 200% Windows display scale or 2x MacOS display > * Fullscreen window...