X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=37fe3a77cab0821c1bd30d4c8a5f07548aec3125;hb=75d67afa120f407fd37d299f947c00ea9f6e83ab;hp=e83df10bb1250a83e405380cd3189c77d8006bd4;hpb=a863de3d5f7a903a1ec68d245861ce0fdf577323;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index e83df10b..37fe3a77 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -624,7 +624,7 @@ Bitmap *CreateBitmap(int width, int height, int depth) int real_height = MAX(1, height); // prevent zero bitmap height int real_depth = GetRealDepth(depth); - SDLCreateBitmapContent(new_bitmap, real_width, real_height, real_depth); + new_bitmap->surface = SDLCreateNativeSurface(real_width, real_height, real_depth); new_bitmap->width = real_width; new_bitmap->height = real_height;