Mercurial > sdl-ios-xcode
changeset 1289:c07c6ef7c93e
Date: Fri, 18 Feb 2005 07:58:00 +0200
From: "Mike Gorchak"
Subject: [SDL] [PATCH] QNX6 and not only QNX6 fixes
1) Update SDL.qpg.in for the QNX 6.3.
4) video/photon/SDL_phyuv.c - fixed bug with swapped U and V planes, using
YV12 mode with radeon cards.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 29 Jan 2006 09:19:55 +0000 |
parents | ea3888b472bf |
children | c4a5a772c5d9 |
files | SDL.qpg.in src/video/photon/SDL_ph_modes.c src/video/photon/SDL_phyuv.c |
diffstat | 3 files changed, 35 insertions(+), 40 deletions(-) [+] |
line wrap: on
line diff
--- a/SDL.qpg.in Sun Jan 29 09:13:36 2006 +0000 +++ b/SDL.qpg.in Sun Jan 29 09:19:55 2006 +0000 @@ -24,32 +24,28 @@ <QPG:Values> <QPG:Files> <QPG:Add file="./COPYING" install="LicenseUrl/" handling="repdata"/> - <QPG:Add permissions="0755" file="./src/.libs/libSDL-@SDL_MAJOR_VERSION@.@SDL_MINOR_VERSION@.so.@SDL_BINARY_AGE@" install="/opt/lib/"/> - <QPG:Add filetype="symlink" file="libSDL.so" install="/opt/lib/" linkto="libSDL-@SDL_MAJOR_VERSION@.@SDL_MINOR_VERSION@.so.@SDL_BINARY_AGE@"/> - <QPG:Add filetype="symlink" file="libSDL-@SDL_MAJOR_VERSION@.@SDL_MINOR_VERSION@.so.0" install="/opt/lib/" linkto="libSDL-@SDL_MAJOR_VERSION@.@SDL_MINOR_VERSION@.so.@SDL_BINARY_AGE@"/> - <QPG:Add filetype="symlink" file="libSDL-@SDL_MAJOR_VERSION@.1.so.0" install="/opt/lib/" linkto="libSDL-@SDL_MAJOR_VERSION@.@SDL_MINOR_VERSION@.so.@SDL_BINARY_AGE@"/> - <QPG:Add filetype="symlink" file="libSDL-@SDL_MAJOR_VERSION@.0.so.0" install="/opt/lib/" linkto="libSDL-@SDL_MAJOR_VERSION@.@SDL_MINOR_VERSION@.so.@SDL_BINARY_AGE@"/> - <QPG:Add permissions="0644" file="./src/.libs/libSDL.a" install="/opt/lib/"/> - <QPG:Add permissions="0644" file="./src/.libs/libSDL.lai" install="/opt/lib/libSDL.la"/> - <QPG:Add permissions="0644" file="./src/main/libSDLmain.a" install="/opt/lib/"/> - <QPG:Add permissions="0644" file="./include/*.h" install="/opt/include/SDL/"/> - <QPG:Add permissions="0755" file="./sdl-config" install="/opt/bin/"/> - <QPG:Add permissions="0644" file="./BUGS" install="/usr/doc/SDL12/"/> - <QPG:Add permissions="0644" file="./COPYING" install="/usr/doc/SDL12/"/> - <QPG:Add permissions="0644" file="./CREDITS" install="/usr/doc/SDL12/"/> - <QPG:Add permissions="0644" file="./INSTALL" install="/usr/doc/SDL12/"/> - <QPG:Add permissions="0644" file="./README" install="/usr/doc/SDL12/"/> - <QPG:Add permissions="0644" file="./README-SDL.txt" install="/usr/doc/SDL12/"/> - <QPG:Add permissions="0644" file="./README.CVS" install="/usr/doc/SDL12/"/> - <QPG:Add permissions="0644" file="./README.QNX" install="/usr/doc/SDL12/"/> - <QPG:Add permissions="0644" file="./TODO" install="/usr/doc/SDL12/"/> - <QPG:Add permissions="0644" file="./WhatsNew" install="/usr/doc/SDL12/"/> - <QPG:Add permissions="0644" file="./docs.html" install="/usr/doc/SDL12/Changes.html"/> - <QPG:Add permissions="0644" file="./docs/index.html" install="/usr/doc/SDL12/docs/"/> - <QPG:Add permissions="0644" file="./docs/html/*.html" install="/usr/doc/SDL12/docs/html/"/> - <QPG:Add permissions="0644" file="./docs/images/rainbow.gif" install="/usr/doc/SDL12/docs/images/"/> - <QPG:Add permissions="0644" file="./docs/man3/*.3" install="/opt/man/man3/"/> - <QPG:Add permissions="0644" file="./sdl.m4" install="/opt/share/aclocal/"/> + <QPG:Add permissions="0755" file="./src/.libs/libSDL-@SDL_MAJOR_VERSION@.@SDL_MINOR_VERSION@.so.@LT_AGE@" install="/usr/lib/"/> + <QPG:Add filetype="symlink" file="libSDL.so" install="/usr/lib/" linkto="libSDL-@SDL_MAJOR_VERSION@.@SDL_MINOR_VERSION@.so.@LT_AGE@"/> + <QPG:Add permissions="0644" file="./src/.libs/libSDL.a" install="/usr/lib/"/> + <QPG:Add permissions="0644" file="./src/.libs/libSDL.lai" install="/usr/lib/libSDL.la"/> + <QPG:Add permissions="0644" file="./src/main/libSDLmain.a" install="/usr/lib/"/> + <QPG:Add permissions="0644" file="./include/*.h" install="/usr/include/SDL/"/> + <QPG:Add permissions="0755" file="./sdl-config" install="/usr/bin/"/> + <QPG:Add permissions="0644" file="./BUGS" install="/usr/share/doc/SDL12/"/> + <QPG:Add permissions="0644" file="./COPYING" install="/usr/share/doc/SDL12/"/> + <QPG:Add permissions="0644" file="./CREDITS" install="/usr/share/doc/SDL12/"/> + <QPG:Add permissions="0644" file="./INSTALL" install="/usr/share/doc/SDL12/"/> + <QPG:Add permissions="0644" file="./README" install="/usr/share/doc/SDL12/"/> + <QPG:Add permissions="0644" file="./README-SDL.txt" install="/usr/share/doc/SDL12/"/> + <QPG:Add permissions="0644" file="./README.CVS" install="/usr/share/doc/SDL12/"/> + <QPG:Add permissions="0644" file="./README.QNX" install="/usr/share/doc/SDL12/"/> + <QPG:Add permissions="0644" file="./TODO" install="/usr/share/doc/SDL12/"/> + <QPG:Add permissions="0644" file="./WhatsNew" install="/usr/share/doc/SDL12/"/> + <QPG:Add permissions="0644" file="./docs.html" install="/usr/share/doc/SDL12/Changes.html"/> + <QPG:Add permissions="0644" file="./docs/index.html" install="/usr/share/doc/SDL12/docs/"/> + <QPG:Add permissions="0644" file="./docs/html/*.html" install="/usr/share/doc/SDL12/docs/html/"/> + <QPG:Add permissions="0644" file="./docs/man3/*.3" install="/usr/share/man/man3/"/> + <QPG:Add permissions="0644" file="./sdl.m4" install="/usr/share/aclocal/"/> </QPG:Files> <QPG:PackageFilter> <QPM:PackageManifest> @@ -59,14 +55,14 @@ <QPM:PackageName>SDL</QPM:PackageName> <QPM:PackageReleaseNumber>1</QPM:PackageReleaseNumber> <QPM:PackageRepository>http://qnx.org.ru/repository</QPM:PackageRepository> - <QPM:FileVersion>2.0</QPM:FileVersion> + <QPM:FileVersion>2.6</QPM:FileVersion> </QPM:PackageDescription> <QPM:ProductDescription> <QPM:ProductName>Simple DirectMedia Layer (SDL)</QPM:ProductName> <QPM:ProductIdentifier>SDL</QPM:ProductIdentifier> <QPM:ProductEmail>slouken@libsdl.org</QPM:ProductEmail> - <QPM:VendorName>public</QPM:VendorName> + <QPM:VendorName>Public</QPM:VendorName> <QPM:VendorInstallName>public</QPM:VendorInstallName> <QPM:VendorURL>http://www.libsdl.org</QPM:VendorURL> <QPM:VendorEmbedURL/> @@ -85,7 +81,7 @@ <QPM:ReleaseDescription> <QPM:ReleaseVersion>@VERSION@</QPM:ReleaseVersion> - <QPM:ReleaseUrgency>High</QPM:ReleaseUrgency> + <QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency> <QPM:ReleaseStability>Stable</QPM:ReleaseStability> <QPM:ReleaseNoteMinor/> <QPM:ReleaseNoteMajor/> @@ -96,7 +92,7 @@ <QPM:ContentDescription> <QPM:ContentTopic xmlmultiple="true">Software Development/Libraries and Extensions/C Libraries</QPM:ContentTopic> - <QPM:ContentKeyword>SDL, audio, graphics, demos, games, emulators, direct, media, layer</QPM:ContentKeyword> + <QPM:ContentKeyword>SDL,audio,graphics,demos,games,emulators,direct,media,layer</QPM:ContentKeyword> <QPM:TargetOS>qnx6</QPM:TargetOS> <QPM:HostOS>none</QPM:HostOS> <QPM:DisplayEnvironment xmlmultiple="true">Photon</QPM:DisplayEnvironment>
--- a/src/video/photon/SDL_ph_modes.c Sun Jan 29 09:13:36 2006 +0000 +++ b/src/video/photon/SDL_ph_modes.c Sun Jan 29 09:19:55 2006 +0000 @@ -28,7 +28,6 @@ #include "SDL_error.h" #include "SDL_ph_modes_c.h" -static unsigned long key1, key2; static PgVideoModeInfo_t mode_info; static PgVideoModes_t mode_list;
--- a/src/video/photon/SDL_phyuv.c Sun Jan 29 09:13:36 2006 +0000 +++ b/src/video/photon/SDL_phyuv.c Sun Jan 29 09:19:55 2006 +0000 @@ -58,10 +58,10 @@ /* Buffers have moved; re-obtain the pointers */ Frame0->Y = (unsigned char *)PdGetOffscreenContextPtr(channel->yplane1); Frame1->Y = (unsigned char *)PdGetOffscreenContextPtr(channel->yplane2); - Frame0->U = (unsigned char *)PdGetOffscreenContextPtr(channel->uplane1); - Frame1->U = (unsigned char *)PdGetOffscreenContextPtr(channel->uplane2); - Frame0->V = (unsigned char *)PdGetOffscreenContextPtr(channel->vplane1); - Frame1->V = (unsigned char *)PdGetOffscreenContextPtr(channel->vplane2); + Frame0->U = (unsigned char *)PdGetOffscreenContextPtr(channel->vplane1); + Frame1->U = (unsigned char *)PdGetOffscreenContextPtr(channel->vplane2); + Frame0->V = (unsigned char *)PdGetOffscreenContextPtr(channel->uplane1); + Frame1->V = (unsigned char *)PdGetOffscreenContextPtr(channel->uplane2); if (Frame0->Y) planes++; @@ -217,10 +217,10 @@ if(overlay->hwdata->channel->yplane1 != NULL) overlay->hwdata->YStride = overlay->hwdata->channel->yplane1->pitch; + if(overlay->hwdata->channel->vplane1 != NULL) + overlay->hwdata->UStride = overlay->hwdata->channel->vplane1->pitch; if(overlay->hwdata->channel->uplane1 != NULL) - overlay->hwdata->UStride = overlay->hwdata->channel->uplane1->pitch; - if(overlay->hwdata->channel->vplane1 != NULL) - overlay->hwdata->VStride = overlay->hwdata->channel->vplane1->pitch; + overlay->hwdata->VStride = overlay->hwdata->channel->uplane1->pitch; /* check for the validness of all planes */ if ((overlay->hwdata->channel->yplane1 == NULL) && @@ -267,12 +267,12 @@ } if (overlay->planes > 1) { - overlay->pitches[1] = overlay->hwdata->channel->uplane1->pitch; + overlay->pitches[1] = overlay->hwdata->channel->vplane1->pitch; overlay->pixels[1] = overlay->hwdata->CurrentFrameData->U; } if (overlay->planes > 2) { - overlay->pitches[2] = overlay->hwdata->channel->vplane1->pitch; + overlay->pitches[2] = overlay->hwdata->channel->uplane1->pitch; overlay->pixels[2] = overlay->hwdata->CurrentFrameData->V; }