Allow use of OpenGL enabled surface for future use
This commit is contained in:
parent
7a62500eb3
commit
bbe5aabf4f
@ -26,6 +26,12 @@
|
||||
#define PIXR(x) (((x)>>8)&0xFF)
|
||||
#define PIXG(x) (((x)>>16)&0xFF)
|
||||
#define PIXB(x) (((x)>>24))
|
||||
#elif defined(PIX32RGBA)
|
||||
#define PIXPACK(x) ((((x)>>16)&0x0000FF)|((x)&0x00FF00)|(((x)<<16)&0xFF0000))
|
||||
#define PIXRGB(r,g,b) (((b)<<16)|((g)<<8)|((r)))// (((b)<<16)|((g)<<8)|(r))
|
||||
#define PIXR(x) ((x)&0xFF)
|
||||
#define PIXG(x) (((x)>>8)&0xFF)
|
||||
#define PIXB(x) ((x)>>16)
|
||||
#else
|
||||
#define PIXPACK(x) (x)
|
||||
#define PIXRGB(r,g,b) (((r)<<16)|((g)<<8)|(b))
|
||||
|
2466
src/graphics.c
2466
src/graphics.c
File diff suppressed because it is too large
Load Diff
@ -5046,7 +5046,7 @@ unsigned int decorations_ui(pixel *vid_buf,int *bsx,int *bsy, unsigned int saved
|
||||
my /= sdl_scale;
|
||||
|
||||
memcpy(vid_buf,old_buf,(XRES+BARSIZE)*(YRES+MENUSIZE)*PIXELSIZE);
|
||||
draw_parts(vid_buf);
|
||||
render_parts(vid_buf);
|
||||
ui_edit_process(mx, my, b, &box_R);
|
||||
ui_edit_process(mx, my, b, &box_G);
|
||||
ui_edit_process(mx, my, b, &box_B);
|
||||
|
Loading…
Reference in New Issue
Block a user