Hyperpixel4 pygame landscape

Hello,

I want to use the HyperPixel4 in landscape mode.
In boot/config.txt I’ve added these two lines:

dtoverlay=vc4-kms-dpi-hyperpixel4
dtparam=rotate=270,touchscreen-swapped-x-y,touchscreen-inverted-x

This is doing the job, in CLI mode the screen is in landscape. Even startx opens in landscape mode.
But when I start a pygame script the screen is in portrait mode.

Any ideas?

I have de latest Bullseye OS, installed pygame and sdl2 nothing more.

Thank you in advance