Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Porting an SDL app to OS X

Porting an SDL app to OS X
Thread Tools
Senior User
Join Date: Aug 2003
Location: united states empire
Status: Offline
Reply With Quote
Jun 13, 2005, 08:47 AM
 
Hi,
I've been working on porting a particular game (a roguelike called ivan )to mac os x. With some research, I was able to get it to compile for mac os x, but there were some issues with the compiled game. One of them is an endian issue that is beyond the scope of this post so I will get into the two errors that I think are sdl-related (and probably simple to fix):

1. 'delete' key on keyboard doesn't delete, but adds garbage characters. I can use control-H to delete inserted text. I've found the code where input is handled, just need to know how to remap the key.

2. when in fullscreen mode, some sprites and menus have incorrect colors. This game likes to run in 16-bit mode. It runs fine in windowed mode, but in fullscreen it gets yucky. I figured this might be a difference between mac's "15-bit" mode and windows/linux's 16-bit mode. I tried editing the code to tell it to run at 24 or 32 bits in fullscreen, but it only changed the video's mode...the game itself still seemed to be putting out only 16 bits, which made the graphics look even more garbled.

The reason I am asking about this here is that I figured I might find someone who has ported an sdl app to os x in the past. I've learned a lot about it by reading the faqs and documents on their site...and some of them did help me quite a bit with getting the game to compile on the mac....but these problems listed here, I have not been able to find a solution for.

As of now, I am playing the game in Virtual PC, as are many other people...hopefully we'll be able to figure this out!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:15 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2