Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
#include #include #include #define WIDTH 320 #define HEIGHT 430 #if 1 #define BPP 4 #define DEPTH 32 #else #define BPP 2 #define DEPTH 16 #endif void setpixel(SDL_Surface *screen, int x, int y, Uint8 r, Uint8 g, Uint8 b) { Uint32 colour; colour = SDL_MapRGB( screen->format, r, g, b ); switch (screen->format->BytesPerPixel) { case 2: { Uint16 *pixmem16; pixmem16 = (Uint16*) screen->pixels + y + x; *pixmem16 = colour; } break; case 4: { Uint32 *pixmem32; pixmem32 = (Uint32*) screen->pixels + y + x; *pixmem32 = colour; } break; } } void DrawScreen(SDL_Surface* screen, int h) { int x, y, ytimesw; if(SDL_MUSTLOCK(screen)) { if(SDL_LockSurface(screen) < 0) return; } for(y = 0; y < screen->h; y++ ) { ytimesw = y*screen->pitch/BPP; for( x = 0; x < screen->w; x++ ) { setpixel(screen, x, ytimesw, (x*x)/256+3*y+h, (y*y)/256+x+h, h); } } if(SDL_MUSTLOCK(screen)) SDL_UnlockSurface(screen); SDL_Flip(screen); } int main(int argc, char* argv[]) { SDL_Surface *screen; SDL_Event event; int keypress = 0; int h=0; if (SDL_Init(SDL_INIT_VIDEO) < 0 ) return 1; if (!(screen = SDL_SetVideoMode(WIDTH, HEIGHT, DEPTH, 0))) { SDL_Quit(); return 1; } while(!keypress) { DrawScreen(screen,h++); while(SDL_PollEvent(&event)) { switch (event.type) { case SDL_QUIT: keypress = 1; break; case SDL_KEYDOWN: keypress = 1; break; } } } SDL_Quit(); return 0; }