Further information

The image blits fine unless it is wider than 4092 pixels. At 4093 pixels, it
doesn’t blit correctly. (That’s 4092, NOT 4096.) I’m going to look in the
source to see if this is documented there or what’s causing the problem.

  • Ithil

heh, I’ve decided my hardware doesn’t like surfaces that wide :stuck_out_tongue:

IMO, I don’t think a video card will handle such a surface. That surface
would require 877824 bytes of memory at least . However it may be that your
video memory surface was in 32bit, but your surface was in 24.> ----- Original Message -----

From: owner-sdl@lokigames.com [mailto:owner-sdl at lokigames.com]On Behalf
Of Ithil
Sent: June 3, 2001 6:49 PM
To: sdl at lokigames.com
Subject: [SDL] Re: further information

heh, I’ve decided my hardware doesn’t like surfaces that wide :stuck_out_tongue:


Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

It was 32 bit, and a 1024x768x32 surface takes 3,145,728 bytes.

But you had said 6096x48x24 was the image size, so I had just assumed you
had tried to make a video memory surface to blit from of that type.

If you were running in double buffered mode don’t you need 2X the memory
required PLUS whatever memory you were trying to allocate in the video
memory?

What’s the video cards memory capacity?> ----- Original Message -----

From: owner-sdl@lokigames.com [mailto:owner-sdl at lokigames.com]On Behalf
Of Ithil
Sent: June 3, 2001 10:02 PM
To: sdl at lokigames.com
Subject: [SDL] Re: Re: further information

It was 32 bit, and a 1024x768x32 surface takes 3,145,728 bytes.


Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

const SDL_VideoInfo *info = SDL_GetVideoInfo();
printf ("%i\n", info->video_mem);

Returns 12164k. The card has 16 MB. I’m not sure why all of the memory is
showing up, but regardless, there’s enough memory. If the surface couldn’t
be allocated, SDL_CreateRGBSurface would have returned NULL. (video_mem
returns total memory, not free memory.)

  • Ithil

heh, I’ve decided my hardware doesn’t like surfaces that wide :stuck_out_tongue:

Yeah, there’s probably a hardware 4K width limit internally.

See ya,
-Sam Lantinga, Lead Programmer, Loki Software, Inc.