Home | History | Annotate | Download | only in client_examples

Lines Matching full:sdl

5 #include <SDL.h>
10 struct { int sdl; int rfb; } buttonMapping[]={
44 SDL_Surface* sdl=SDL_SetVideoMode(width,height,depth,sdlFlags);
45 rfbClientSetClientData(client, SDL_Init, sdl);
46 client->width = sdl->pitch / (depth / 8);
51 client->frameBuffer=sdl->pixels;
54 client->format.redShift=sdl->format->Rshift;
55 client->format.greenShift=sdl->format->Gshift;
56 client->format.blueShift=sdl->format->Bshift;
57 client->format.redMax=sdl->format->Rmask>>client->format.redShift;
58 client->format.greenMax=sdl->format->Gmask>>client->format.greenShift;
59 client->format.blueMax=sdl->format->Bmask>>client->format.blueShift;
63 SDL_Surface* sdl=rfbClientGetClientData(client, SDL_Init);
66 if(sdl) {
67 client->width=sdl->pitch / (depth / 8);
68 client->height=sdl->h;
75 SDL_WM_SetCaption(client->desktopName, "SDL");
156 /* both SDL and X11 keysyms match ASCII in the range 0x01-0x7f */
253 SDL_Surface* sdl;
280 sdl = rfbClientGetClientData(client, SDL_Init);
281 if (sdl->w != w || sdl->h != h) {
282 int depth = sdl->format->BitsPerPixel;
283 sdl = SDL_SetVideoMode(w, h, depth, sdlFlags);
284 rfbClientSetClientData(client, SDL_Init, sdl);
285 sdlPixels = sdl->pixels;
286 rowStride = sdl->pitch / (depth / 8);
365 close viewer window by restarting SDL video subsystem
400 for (i = 0; buttonMapping[i].sdl; i++)
401 if (state == buttonMapping[i].sdl) {
467 rfbClientLog("ignore SDL event: 0x%x\n", e->type);