Blender Git Loki

Git Commits -> Revision 7fd107b

Revision 7fd107b by Jason Wilkins (soc-2014-viewport_fx)
June 25, 2014, 15:55 (GMT)
Using 0 as an error sentinel for the swap interval is not strictly correct.

0 is a valid value for a swap interval and different users of getSwapInterval may want to substitute different values if the swap interval cannot be read.

This commit changes the prototype to: GHOST_TSuccess getSwapInterval(int& intervalOut)

Users of the function should either check the return value or set intervalOut to a default value before calling getSwapInterval.

Commit Details:

Full Hash: 7fd107b320a779554beed2ec2d119290b0a9e3a4
Parent Commit: ebe8935
Lines Changed: +81, -55

27 Modified Paths:

/intern/ghost/GHOST_C-api.h (+1, -1) (Diff)
/intern/ghost/GHOST_IWindow.h (+3, -2) (Diff)
/intern/ghost/intern/GHOST_C-api.cpp (+2, -2) (Diff)
/intern/ghost/intern/GHOST_Context.h (+4, -3) (Diff)
/intern/ghost/intern/GHOST_ContextCGL.h (+3, -2) (Diff)
/intern/ghost/intern/GHOST_ContextCGL.mm (+6, -4) (Diff)
/intern/ghost/intern/GHOST_ContextEGL.cpp (+3, -2) (Diff)
/intern/ghost/intern/GHOST_ContextEGL.h (+3, -2) (Diff)
/intern/ghost/intern/GHOST_ContextNone.cpp (+3, -2) (Diff)
/intern/ghost/intern/GHOST_ContextNone.h (+3, -2) (Diff)
/intern/ghost/intern/GHOST_ContextWGL.cpp (+8, -2) (Diff)
/intern/ghost/intern/GHOST_ContextWGL.h (+3, -2) (Diff)
/intern/ghost/intern/GHOST_Window.cpp (+2, -2) (Diff)
/intern/ghost/intern/GHOST_Window.h (+5, -5) (Diff)
/intern/ghost/intern/GHOST_WindowSDL.cpp (+4, -3) (Diff)
/intern/ghost/intern/GHOST_WindowSDL.h (+1, -1) (Diff)
/intern/ghost/intern/GHOST_WindowX11.cpp (+8, -4) (Diff)
/intern/ghost/intern/GHOST_WindowX11.h (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+2, -2) (Diff)
/source/blender/windowmanager/wm_window.h (+1, -1) (Diff)
/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp (+2, -1) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp (+2, -2) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderCanvas.h (+2, -1) (Diff)
/source/gameengine/GamePlayer/ghost/GPG_Canvas.cpp (+3, -3) (Diff)
/source/gameengine/GamePlayer/ghost/GPG_Canvas.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.cpp (+3, -1) (Diff)
/source/gameengine/Rasterizer/RAS_ICanvas.h (+2, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021