if you want to draw icons pixel by pixel, it’s going to be awfully
slow. You’d better create a SDL_Surface from your icon using
SDL_CreateRGBSurfaceFrom function and then use SDL_Blit function to
draw it on screen. I bet you can google many examples of this.
regards,
Pavel KanzelsbergerOn 28.1.2010, at 14:55, dekyco wrote:
Hello,
I am wondering if I could draw some glyphs,sprites,icons etc. with
pixels only (using SDL_gfx pixelRGBA
function)? For example I have some color icon 32x32 pixels which is
made in GIMP.So the question is: how
exactly this icon can be drawn in color using only pixels in SDL?
I’m having a problem under Vista with SDL_SetVideoMode().
It just works fine until I change the DPI under Vista to e.g. 150% (144DPI).
The returned screen in FullScreenmode is centered and it seems to be 150%
of the original size.
Is this behaviour supposed to be so ?