Sdl_fullscreen

Hello !

is this right command for getting SDL?

  1. Call sudo make uninstall in your own compiled SDL version to remove it from the system (Maybe you have already done that !)
  2. You have to install one of these packages :

apt-get install libsdl1.2debian

This is only a meta package.
You need to install either one of these packages :

dep: libsdl1.2debian-alsa (= 1.2.14-6.1)
    Simple DirectMedia Layer (Grafikbibliothek, mit Unterst?tzung von X11 und ALSA) 
oder libsdl1.2debian-all (= 1.2.14-6.1)
    Simple DirectMedia Layer (with all available options) 
oder libsdl1.2debian-esd (= 1.2.14-6.1)
    Simple DirectMedia Layer (mit X11 und esound Optionen) 
oder libsdl1.2debian-arts (= 1.2.14-6.1)
    ?Simple DirectMedia Layer? (mit X11 und aRts-Optionen) 
oder libsdl1.2debian-oss (= 1.2.14-6.1)
    Simple DirectMedia Layer (mit X11- und OSS-Optionen) 
oder libsdl1.2debian-nas (= 1.2.14-6.1)
    Simple DirectMedia Layer (with X11 and NAS options) 
oder libsdl1.2debian-pulseaudio (= 1.2.14-6.1)
    Simple DirectMedia Layer (with X11 and PulseAudio options) 

sudo apt-get install libsdl1.2debian-alsa
or
sudo apt-get install libsdl1.2debian-pulseaudio

whether you use ALSA or PulseAudio.

  1. sudo apt-get install libsdl1.2-dev

This will install a bunch of packages to your system.

  1. After all is installed correctly, when you call which sdl-config,
    it should show you something like

/usr/bin/sdl-config

CU

I think i have a problem with repository!

root at debian:/home/ppi# apt-get install libsdl1.2debian
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libsdl1.2debian
E: Couldn’t find any package by regex 'libsdl1.2debian’
root at debian:/home/ppi# apt-get install libsdl1.2debian-alsa
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libsdl1.2debian-alsa
E: Couldn’t find any package by regex 'libsdl1.2debian-alsa’
root at debian:/home/ppi# apt-get install libsdl1.2debian-pulseaudio
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libsdl1.2debian-pulseaudio
E: Couldn’t find any package by regex 'libsdl1.2debian-pulseaudio’
root at debian:/home/ppi# apt-get install libsdl1.2-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libsdl1.2-dev
E: Couldn’t find any package by regex 'libsdl1.2-dev’
root at debian:/home/ppi#On Wed, Jun 13, 2012 at 11:12 AM, Torsten Giebl wrote:

Hello !

is this right command for getting SDL?

  1. Call sudo make uninstall in your own compiled SDL version to remove it
    from the system (Maybe you have already done that !)
  2. You have to install one of these packages :

apt-get install libsdl1.2debian

This is only a meta package.
You need to install either one of these packages :

dep: libsdl1.2debian-alsa (= 1.2.14-6.1)
Simple DirectMedia Layer (Grafikbibliothek, mit Unterst?tzung von
X11 und ALSA)
oder libsdl1.2debian-all (= 1.2.14-6.1)
Simple DirectMedia Layer (with all available options)
oder libsdl1.2debian-esd (= 1.2.14-6.1)
Simple DirectMedia Layer (mit X11 und esound Optionen)
oder libsdl1.2debian-arts (= 1.2.14-6.1)
?Simple DirectMedia Layer? (mit X11 und aRts-Optionen)
oder libsdl1.2debian-oss (= 1.2.14-6.1)
Simple DirectMedia Layer (mit X11- und OSS-Optionen)
oder libsdl1.2debian-nas (= 1.2.14-6.1)
Simple DirectMedia Layer (with X11 and NAS options)
oder libsdl1.2debian-pulseaudio (= 1.2.14-6.1)
Simple DirectMedia Layer (with X11 and PulseAudio options)

sudo apt-get install libsdl1.2debian-alsa
or
sudo apt-get install libsdl1.2debian-pulseaudio

whether you use ALSA or PulseAudio.

  1. sudo apt-get install libsdl1.2-dev

This will install a bunch of packages to your system.

  1. After all is installed correctly, when you call which sdl-config,
    it should show you something like

/usr/bin/sdl-config

CU


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

RLEAlphaSurface executes RLE compress, compress will use map->dst of
surface.

static int RLEAlphaSurface(SDL_Surface * surface)

{

   SDL_Surface *dest;

   SDL_PixelFormat *df;

   ...

   dest = surface->map->dst;

   if (!dest)

          return -1;

   df = dest->format;

   ...

}

But surface->map->dest maybe invalid!

RLEAlphaSurface is used for tow scenario, one is blit, other is
SDL_UnlockSurface. In blit, surface->map->dst always valid. But in
SDL_UnlockSurface, dst maybe invalid. Let see a sequence

  1. A is RLE surface. A blit to destination surface C. When blit finished,
    A’s map->dst point to C.

  2. C is released. But don’t update A’s map->dst.

  3. Program wants access A’s pixel data directly, so call
    SDL_LockSurface/SDL_UnlockSurface. When execute SDL_UnlockSurface, because
    surface->map->dst is invalid, result to crash.

Is it a BUG? or I mistake RLEAlphaSurface?

works nicely :slight_smile:
thanks Torsten :-xOn Wed, Jun 13, 2012 at 7:42 PM, Torsten Giebl wrote:

Hello !

is this right command for getting SDL?

  1. Call sudo make uninstall in your own compiled SDL version to remove it
    from the system (Maybe you have already done that !)
  2. You have to install one of these packages :

apt-get install libsdl1.2debian

This is only a meta package.
You need to install either one of these packages :

dep: libsdl1.2debian-alsa (= 1.2.14-6.1)
Simple DirectMedia Layer (Grafikbibliothek, mit Unterst?tzung von
X11 und ALSA)
oder libsdl1.2debian-all (= 1.2.14-6.1)
Simple DirectMedia Layer (with all available options)
oder libsdl1.2debian-esd (= 1.2.14-6.1)
Simple DirectMedia Layer (mit X11 und esound Optionen)
oder libsdl1.2debian-arts (= 1.2.14-6.1)
?Simple DirectMedia Layer? (mit X11 und aRts-Optionen)
oder libsdl1.2debian-oss (= 1.2.14-6.1)
Simple DirectMedia Layer (mit X11- und OSS-Optionen)
oder libsdl1.2debian-nas (= 1.2.14-6.1)
Simple DirectMedia Layer (with X11 and NAS options)
oder libsdl1.2debian-pulseaudio (= 1.2.14-6.1)
Simple DirectMedia Layer (with X11 and PulseAudio options)

sudo apt-get install libsdl1.2debian-alsa
or
sudo apt-get install libsdl1.2debian-pulseaudio

whether you use ALSA or PulseAudio.

  1. sudo apt-get install libsdl1.2-dev

This will install a bunch of packages to your system.

  1. After all is installed correctly, when you call which sdl-config,
    it should show you something like

/usr/bin/sdl-config

CU


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org