On Fri, 14 May 2010 16:50:53 -0000
hessi...@hessiess.com wrote:

> > On Fri, May 14, 2010 at 04:40:59PM -0000, hessi...@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.
> 
> 

[panc...@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?

Reply via email to