xboxscene.org forums

Author Topic: Openxdk Sample (sdlimage)  (Read 124 times)

friedgold

  • Archived User
  • Sr. Member
  • *
  • Posts: 266
Openxdk Sample (sdlimage)
« on: February 15, 2007, 04:21:00 PM »

The code looks ok to me but as you say it's clearly not finding the files. I'd suggest trying the paths d:/sdlnow.png (d:/ is normally mapped to the current directory) or the full path to the image to see if that makes a difference. You could also try opening the files with fopen seeing if that returns NULL as well to try and track down the cause of the problem.
Logged

rav64

  • Archived User
  • Newbie
  • *
  • Posts: 8
Openxdk Sample (sdlimage)
« Reply #1 on: February 16, 2007, 09:02:00 AM »

QUOTE(friedgold @ Feb 16 2007, 12:28 AM) View Post

I'd suggest trying the paths d:/sdlnow.png (d:/ is normally mapped to the current directory) or the full path to the image to see if that makes a difference.

Yup, that did the trick. Now the three images are displayed on a red background, and all is well. Nice, I think I'm going to have to continue playing around with OpenXDK this weekend.

Thanks a bunch!

--
rav64
Logged