Mercurial > sdl-ios-xcode
view test/configure.in @ 1812:9c882e94b545
Fixed bug #208
So, here's a patch with a reimplementation of QZ_SetIcon() that does what I
described above. I apologize for the delay, I've been quite busy in the last
few days.
It appears to work here on 10.4.5 PPC in the limited testing that I've done;
I'll try to test it on 10.3.9 and 10.2.8 as well, but that might take another
week or so. Please test on i386.
Regarding alpha channels, per-surface alpha, and color keys, the same semantics
as for regular blits to an RGB surface should apply (for the final icon
composited onto the dock), unless I made a mistake - except in one pathological
case: if the icon surface has an alpha channel, its SDL_SRCALPHA flag is not
set (i.e. it has been explicitly cleared, since it's on by default for RGBA
surfaces), and it has a color key, plus an explicit mask was specified (instead
of the one autogenerated from the colorkey), then the color-keyed areas appear
black instead of transparent. I found no elegant way of fixing this, was too
lazy to implement the inelegant one, and decided that it isn't worth the effort
(but if someone disagrees, I can do it).
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 11 May 2006 03:45:55 +0000 |
parents | 31c2b8e4885e |
children | 0a53c90a37f9 a7cda692b681 |
line wrap: on
line source
dnl Process this file with autoconf to produce a configure script. AC_INIT(README) dnl Detect the canonical build and host environments AC_CONFIG_AUX_DIRS($srcdir/../build-scripts) AC_CANONICAL_HOST dnl Check for tools AC_PROG_CC dnl Check for compiler environment AC_C_CONST dnl Figure out which math library to use case "$host" in *-*-cygwin* | *-*-mingw32*) EXE=".exe" MATHLIB="" SYS_GL_LIBS="-lopengl32" ;; *-*-beos*) EXE="" MATHLIB="" SYS_GL_LIBS="-lGL" ;; *-*-darwin* ) EXE="" MATHLIB="" SYS_GL_LIBS="" ;; *-*-aix*) EXE="" if test x$ac_cv_prog_gcc = xyes; then CFLAGS="-mthreads" fi SYS_GL_LIBS="" ;; *-*-mint*) EXE="" MATHLIB="" AC_PATH_PROG(OSMESA_CONFIG, osmesa-config, no) if test "x$OSMESA_CONFIG" = "xyes"; then OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags` OSMESA_LIBS=`$OSMESA_CONFIG --libs` CFLAGS="$CFLAGS $OSMESA_CFLAGS" SYS_GL_LIBS="$OSMESA_LIBS" else SYS_GL_LIBS="-lOSMesa" fi ;; *) EXE="" MATHLIB="-lm" SYS_GL_LIBS="-lGL" ;; esac AC_SUBST(EXE) AC_SUBST(MATHLIB) dnl Check for SDL SDL_VERSION=1.2.10 AM_PATH_SDL($SDL_VERSION, :, AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) ) CFLAGS="$CFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" dnl Check for OpenGL AC_MSG_CHECKING(for OpenGL support) have_opengl=no AC_TRY_COMPILE([ #include "SDL_opengl.h" ],[ ],[ have_opengl=yes ]) AC_MSG_RESULT($have_opengl) if test x$have_opengl = xyes; then CFLAGS="$CFLAGS -DHAVE_OPENGL" GLLIB="$SYS_GL_LIBS" else GLLIB="" fi AC_SUBST(GLLIB) dnl Finally create all the generated files AC_OUTPUT([Makefile])