Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_playanim.c
| Context not available. | |||||
| static void playanim_window_open(const char *title, int posx, int posy, int sizex, int sizey) | static void playanim_window_open(const char *title, int posx, int posy, int sizex, int sizey) | ||||
| { | { | ||||
| GHOST_GLSettings glsettings = {0}; | GHOST_GLSettings glsettings = {0}; | ||||
| GHOST_TUns32 scr_w, scr_h; | GHOST_TUns32 scr_w, scr_h, scr_x, scr_y; | ||||
| GHOST_GetMainDisplayDimensions(g_WS.ghost_system, &scr_w, &scr_h); | GHOST_GetMainDisplayDimensions(g_WS.ghost_system, &scr_x, &scr_y, &scr_w, &scr_h); | ||||
| posy = (scr_h - posy - sizey); | posy = (scr_h - posy - sizey); | ||||
| Context not available. | |||||
| { | { | ||||
| struct ImBuf *ibuf = NULL; | struct ImBuf *ibuf = NULL; | ||||
| static char filepath[FILE_MAX]; /* abused to return dropped file path */ | static char filepath[FILE_MAX]; /* abused to return dropped file path */ | ||||
| GHOST_TUns32 maxwinx, maxwiny; | GHOST_TUns32 scr_w, scr_h, scr_x, scr_y; | ||||
| int i; | int i; | ||||
| /* This was done to disambiguate the name for use under c++. */ | /* This was done to disambiguate the name for use under c++. */ | ||||
| int start_x = 0, start_y = 0; | int start_x = 0, start_y = 0; | ||||
| Context not available. | |||||
| playanim_gl_matrix(); | playanim_gl_matrix(); | ||||
| } | } | ||||
| GHOST_GetMainDisplayDimensions(g_WS.ghost_system, &maxwinx, &maxwiny); | GHOST_GetMainDisplayDimensions(g_WS.ghost_system, &scr_x, &scr_y, &scr_w, &scr_h); | ||||
| //GHOST_ActivateWindowDrawingContext(g_WS.ghost_window); | //GHOST_ActivateWindowDrawingContext(g_WS.ghost_window); | ||||
| Context not available. | |||||
| ps.win_x = ps.ibufx; | ps.win_x = ps.ibufx; | ||||
| ps.win_y = ps.ibufy; | ps.win_y = ps.ibufy; | ||||
| if (maxwinx % ibuf->x) maxwinx = ibuf->x * (1 + (maxwinx / ibuf->x)); | if (scr_w % ibuf->x) scr_w = ibuf->x * (1 + (scr_w / ibuf->x)); | ||||
| if (maxwiny % ibuf->y) maxwiny = ibuf->y * (1 + (maxwiny / ibuf->y)); | if (scr_h % ibuf->y) scr_h = ibuf->y * (1 + (scr_h / ibuf->y)); | ||||
| glClearColor(0.1, 0.1, 0.1, 0.0); | glClearColor(0.1, 0.1, 0.1, 0.0); | ||||
| Context not available. | |||||