Search results

  1. A

    Problems When Connecting Over Telnet

    Ok, I used this file http://www.gp2x.de/cgi-bin/cfiles.cgi?0,0,0,0,17,1824 and this script: CODE #!/bin/sh rmmod g_ether cp /lib/modules/2.4.25/kernel/drivers/usb/gadget/g_ether.o ./backup2.o cp -f g_ether.o /lib/modules/2.4.25/kernel/drivers/usb/gadget/g_ether.o sync modprobe g_ether cd...
  2. A

    Problems When Connecting Over Telnet

    Hi all, I've been doing some dev stuff on windows based machines, including telnet connections. But since windows is evil ;) I have decided to completely switch to linux (ubuntu in my case) and get a Wii for my gaming needs. So far so good, but I ran into a nasty little problem when trying to...
  3. A

    Black Screen When Using Sdl_gfx

    that was it :) but using the rotozoom function results in a single pixel on my display, but on my windows version it works as expected...any thoughts on that?
  4. A

    Black Screen When Using Sdl_gfx

    // check src->w/h in case something is borked .. printf("src->w : %d, src->h : %d\n", src->w, src->h); SDL_BlitSurface(src, &srcR, screen, &dstR); I'm afraid that's not the problem, as the black screen continues to show, even if I skip the entire 'action' part of this 'game' and go...
  5. A

    Black Screen When Using Sdl_gfx

    You forgot to meditate first while chanting the mantra, "A value returned is a value checked". you are right offcourse, but I stripped the error checking for post-size-sake. this code also displays nothing but a black screen... :( CODE SDL_Surface *src, *screen = NULL; int init =...
  6. A

    Black Screen When Using Sdl_gfx

    I don't know what is going on here, but nothing seems to run atm :( I stripped the code to it's bare minimum, without error checking -> still a black screen! CODE #ifdef GP2X #include "SDL/SDL.h" #include "SDL/SDL_rotozoom.h" #else #include "SDL.h" #endif #include <unistd.h> int main(int...
  7. A

    How To Read A Text File And Save It

    Since Yaustar's way automatically strips \r | \n you really should not have any problems with that. Perhaps you could show the file you are trying to parse?
  8. A

    How To Read A Text File And Save It

    yaustar's way should work, but remember that '>>' also breaks on spaces, so CODE bla die bla.bmp somethingelse.bmp would crash, but is easily avoided by not using spaces in filenames.
  9. A

    How To Read A Text File And Save It

    i cant get this to work along with other similar actions you should go for a vector with SDL_Surface*; Your current code copies the full surface from loadImage to the vector, you don't want your poor GP2X to do that ;) what exactly goes wrong with your code?
  10. A

    Black Screen When Using Sdl_gfx

    Well, atm I am trying to get it to work for real time, but I could do some pre-rendering offcourse. But as I have not yet been able to get it to work, I can't judge wheater it is to slow. Do I have to install something on my GP2X?
  11. A

    Black Screen When Using Sdl_gfx

    well, I compiled the SDL_rotozoom.c/h files along with my own code, so that really shouldn't be the problem. (same thing when I link to it btw.) haven't got a serial cable yet...but I print my debug messages to a file, so that kinda works CODE std::ofstream debug("/mnt/sd/dev/log.txt"...
  12. A

    Black Screen When Using Sdl_gfx

    Hi all, I recently bought a GP2X and started deving the same day the package arrived. I've been using SDL for quite some time now, So I felt pretty confident when I started. Sure enough, within a few hours I had everything set up and the first few squares where blitting happily across my...
Back
Top