view docs/index.html @ 3899:081aecdb0911 SDL-1.2

From: Gabriel Gambetta To: SDL Mailing List <sdl@libsdl.org> Date: Fri, 17 Nov 2006 00:39:29 -0200 Subject: [SDL] Alpha blending bug - fixed? It turns out mm5 never got the correct value. This failed : [...] "movd %1, %%mm5\n\t" : : "m" (amask), "m" (sf->Ashift) ); mm5 got 0xFF000018 instead of 0x00000018. However I did this : Uint32 ashift = sf->Ashift; [...] "movd %1, %%mm5\n\t" : : "m" (amask), "m" (ashift) ); and everything worked fine. The only thing I could find out was that ashift is 32-bit aligned but sf->Ashift isn't: printf("ashift %8X [%d]\n", &ashift, (int)(&ashift) % 4); printf("sf->Ashift %8X [%d]\n", &sf->Ashift, (int)(&sf->Ashift) % 4); ashift at BFF0E0C4 [0] sf->Ashift at 08AFB9CD [1] Could this be the problem? If it is, the fix is extremely trivial. Should I submit a patch? --Gabriel
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 21 Nov 2006 23:17:00 +0000
parents c6a447c98584
children
line wrap: on
line source

<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN">
<HTML>
<HEAD><TITLE>Simple DirectMedia Layer Introduction</TITLE></HEAD>
<BODY BGCOLOR="#FFF8DC" TEXT="#000000" LINK="#0000ee" VLINK="#551a8b" ALINK="#ff0000">
<DIV CLASS="NAVHEADER">
<HR ALIGN="LEFT" WIDTH="100%">
</DIV>
<DIV CLASS="PREFACE">
<H2><A NAME="AEN8">Simple DirectMedia Layer Introduction</A></H2>
<P>
This library is designed to make it easy to write games that run on many
different platforms using the various native high-performance media interfaces,
(for video, audio, etc) and presenting a single source-code level API to
your application.  This is a fairly low level API, but using this, completely
portable applications can be written with a great deal of flexibility.
</P><P>
An introduction to SDL can be found online at:
<A HREF="http://www.libsdl.org/intro.php" TARGET="_top">
         http://www.libsdl.org/intro.php</A>
</P><P>
Tutorials on a variety of topics can be found online at:
<A HREF="http://www.libsdl.org/tutorials.php" TARGET="_top">
         http://www.libsdl.org/tutorials.php</A>
</P><P>
Documentation in Wiki form can be found online at:
<A HREF="http://www.libsdl.org/cgi/docwiki.cgi/" TARGET="_top">
         http://www.libsdl.org/cgi/docwiki.cgi/</A>
</P><P>
Enjoy!
</P><P>
&nbsp;&nbsp;&nbsp; Sam Lantinga
<TT CLASS="EMAIL">&#60;<A HREF="mailto:slouken@libsdl.org"><A HREF="mailto:slouken@libsdl.org" TARGET="_top" >slouken@libsdl.org</A></A>&#62;</TT>
</P> <P>
<br><br><HR>
<H1>Table of Contents</H1>
<UL>
<LI><A HREF="html/index.html">Full Table of Contents</A></LI>
<LI><A HREF="html/guide.html">The SDL Guide</A></LI>
<LI><A HREF="html/reference.html">The SDL Reference</A></LI>
<UL>
<LI><A HREF="html/general.html">Initialization</A></LI>
<LI><A HREF="html/video.html">Video</A></LI>
<LI><A HREF="html/wm.html">Window Manager</A></LI>
<LI><A HREF="html/event.html">Event Handling</A></LI>
<LI><A HREF="html/joystick.html">Joystick</A></LI>
<LI><A HREF="html/audio.html">Audio</A></LI>
<LI><A HREF="html/cdrom.html">CDROM</A></LI>
<LI><A HREF="html/thread.html">Threads</A></LI>
<LI><A HREF="html/time.html">Timers</A></LI>
</UL>
</UL>
</DIV
></BODY
></HTML
>