Код: Выделить всё
// Linux build:
// gcc test.c -lSDL2 -lSDL2main -o test
//
// Windows build (Linux VM using MinGW):
// x86_64-w64-mingw32-gcc test.c -mwindows -lmingw32 -lSDL2.dll -lSDL2main -o test.exe
//
#include
// note that on Windows, it uses WinMain instead of main!
int main(){
if(SDL_Init(SDL_INIT_VIDEO) В Windows создается линия, имеет антиалиазии:
Почему это происходит?>
Подробнее здесь: [url]https://stackoverflow.com/questions/79660871/sdl2s-sdl-renderdrawline-antialiases-lines-in-windows-but-not-in-linux[/url]