Re: [dev] SDL fullscreen problems in dwm

From: pancake <pancake_AT_youterm.com>
Date: Fri, 14 May 2010 19:02:08 +0200

On Fri, 14 May 2010 16:50:53 -0000
hessiess_AT_hessiess.com wrote:

> > On Fri, May 14, 2010 at 04:40:59PM -0000, hessiess_AT_hessiess.com wrote:
> >> Literally non resizeable, the window cannot be resized.
> > hm, I can open SDL windows that are resizable easily enough,
> > with... "SDL_RESIZABLE"
> >
> > Mate
> >
>
> Sure, but *NO ONE* uses that flag. Go download almost any game made with
> SDL, its not resizeable.
>
>

[pancake_AT_dazo tmp]$ cat sdldwm.c
/*
 * Copyright (C) 2010
 * pancake <youterm.com>
 *
 * $ gcc sdldwm.c -shared -ldl -fPIC -o sdldwm.so
 * $ LD_PRELOAD=./sdldwm.so programname
 */
#define _GNU_SOURCE
#include <dlfcn.h>

static void *(*svm)(int w, int h, int b, unsigned int f);
static void __() __attribute__ ((constructor));
static void __() { svm = dlsym(RTLD_NEXT, "SDL_SetVideoMode"); }

void *SDL_SetVideoMode(int w, int h, int b, unsigned int f) {
        return svm(w,h,b,f|0x10);
}

what about this hack?
Received on Fri May 14 2010 - 17:02:08 UTC

This archive was generated by hypermail 2.2.0 : Fri May 14 2010 - 17:12:02 UTC