diff options
Diffstat (limited to 'source/blender/windowmanager/intern/wm_subwindow.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_subwindow.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_subwindow.c b/source/blender/windowmanager/intern/wm_subwindow.c index 6b286bd19a5..94fe2a662b1 100644 --- a/source/blender/windowmanager/intern/wm_subwindow.c +++ b/source/blender/windowmanager/intern/wm_subwindow.c @@ -461,7 +461,11 @@ void WM_framebuffer_index_set(int index) void WM_framebuffer_index_get(int index, int *r_col) { - *r_col = index_to_framebuffer(index); + const int col = index_to_framebuffer(index); + *r_col = ((col & 0xFF) << 24) | /* red */ + (((col >> 8) & 0xFF) << 16) | /* green */ + (((col >> 16) & 0xFF) << 8) | /* blue */ + 0xFF; /* alpha */ } |