comparison src/video/win32/SDL_win32shape.c @ 4809:329708ffe2a7

Rejiggering the way shaped windows are created as preparation for OS X implementation. Fixed overdrive bug in test program that appears to have been introduced by someone other than myself.
author Eli Gottlieb <eligottlieb@gmail.com>
date Mon, 26 Jul 2010 17:27:04 -0400
parents c9eb95f29770
children 5b4c7d7d8953
comparison
equal deleted inserted replaced
4808:2ae79ed78a5a 4809:329708ffe2a7
20 eligottlieb@gmail.com 20 eligottlieb@gmail.com
21 */ 21 */
22 22
23 #include <windows.h> 23 #include <windows.h>
24 #include "SDL_win32shape.h" 24 #include "SDL_win32shape.h"
25
26 SDL_Window* Win32_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) {
27 return SDL_CreateWindow(title,x,y,w,h,flags);
28 }
25 29
26 SDL_WindowShaper* Win32_CreateShaper(SDL_Window * window) { 30 SDL_WindowShaper* Win32_CreateShaper(SDL_Window * window) {
27 SDL_WindowShaper* result = malloc(sizeof(SDL_WindowShaper)); 31 SDL_WindowShaper* result = malloc(sizeof(SDL_WindowShaper));
28 result->window = window; 32 result->window = window;
29 result->mode.mode = ShapeModeDefault; 33 result->mode.mode = ShapeModeDefault;