cleanup: spelling & typos
Comments only, no functional change.
This commit is contained in:
@@ -140,7 +140,7 @@ private:
|
|||||||
const int m_contextFlags;
|
const int m_contextFlags;
|
||||||
const int m_contextResetNotificationStrategy;
|
const int m_contextResetNotificationStrategy;
|
||||||
|
|
||||||
/** The opgnGL drawing context */
|
/** The OpenGL drawing context */
|
||||||
NSOpenGLContext *m_openGLContext;
|
NSOpenGLContext *m_openGLContext;
|
||||||
|
|
||||||
//static CGLEWContext *s_cglewContext;
|
//static CGLEWContext *s_cglewContext;
|
||||||
|
@@ -58,7 +58,7 @@ GHOST_NDOFManagerX11::GHOST_NDOFManagerX11(GHOST_System& sys)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
/* annoying for official builds, just adds noise and most prople don't own these */
|
/* annoying for official builds, just adds noise and most people don't own these */
|
||||||
puts("ndof: spacenavd not found");
|
puts("ndof: spacenavd not found");
|
||||||
/* This isn't a hard error, just means the user doesn't have a 3D mouse. */
|
/* This isn't a hard error, just means the user doesn't have a 3D mouse. */
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1128,7 +1128,7 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
|
|||||||
* until it finds a window that processes it.
|
* until it finds a window that processes it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Get the winow under the mouse and send event to it's queue. */
|
/* Get the window under the mouse and send event to its queue. */
|
||||||
POINT mouse_pos = {GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)};
|
POINT mouse_pos = {GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)};
|
||||||
HWND mouse_hwnd = ChildWindowFromPoint(HWND_DESKTOP, mouse_pos);
|
HWND mouse_hwnd = ChildWindowFromPoint(HWND_DESKTOP, mouse_pos);
|
||||||
GHOST_WindowWin32 *mouse_window = (GHOST_WindowWin32 *)::GetWindowLongPtr(mouse_hwnd, GWLP_USERDATA);
|
GHOST_WindowWin32 *mouse_window = (GHOST_WindowWin32 *)::GetWindowLongPtr(mouse_hwnd, GWLP_USERDATA);
|
||||||
@@ -1136,7 +1136,7 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
|
|||||||
event = processWheelEvent(mouse_window, wParam, lParam);
|
event = processWheelEvent(mouse_window, wParam, lParam);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Happens when wmouse is not over of any of blender windows. */
|
/* Happens when mouse is not over any of blender's windows. */
|
||||||
event = processWheelEvent(window, wParam, lParam);
|
event = processWheelEvent(window, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -90,13 +90,13 @@ void glutil_draw_lined_arc(float start, float angle, float radius, int nsegments
|
|||||||
void glutil_draw_filled_arc(float start, float angle, float radius, int nsegments);
|
void glutil_draw_filled_arc(float start, float angle, float radius, int nsegments);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Routines an integer value as obtained by glGetIntegerv.
|
* Returns an integer value as obtained by glGetIntegerv.
|
||||||
* The param must cause only one value to be gotten from GL.
|
* The param must cause only one value to be gotten from GL.
|
||||||
*/
|
*/
|
||||||
int glaGetOneInteger(int param);
|
int glaGetOneInteger(int param);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Routines a float value as obtained by glGetIntegerv.
|
* Returns a float value as obtained by glGetFloatv.
|
||||||
* The param must cause only one value to be gotten from GL.
|
* The param must cause only one value to be gotten from GL.
|
||||||
*/
|
*/
|
||||||
float glaGetOneFloat(int param);
|
float glaGetOneFloat(int param);
|
||||||
@@ -164,8 +164,8 @@ void glaDrawPixelsTexScaled(float x, float y, int img_w, int img_h, int format,
|
|||||||
|
|
||||||
/** Define a 2D area (viewport, scissor, matrices) for OpenGL rendering.
|
/** Define a 2D area (viewport, scissor, matrices) for OpenGL rendering.
|
||||||
*
|
*
|
||||||
* glwDefine2DArea and glaBegin2DDraw set up an OpenGL state appropriate
|
* glaDefine2DArea and glaBegin2DDraw set up an OpenGL state appropriate
|
||||||
* for drawing using both vertice (Vertex, etc) and raster (RasterPos, Rect)
|
* for drawing using both vertex (Vertex, etc) and raster (RasterPos, Rect)
|
||||||
* commands. All coordinates should be at integer positions. There is little
|
* commands. All coordinates should be at integer positions. There is little
|
||||||
* to no reason to use glVertex2f etc. functions during 2D rendering, and
|
* to no reason to use glVertex2f etc. functions during 2D rendering, and
|
||||||
* thus no reason to +-0.5 the coordinates or perform other silly
|
* thus no reason to +-0.5 the coordinates or perform other silly
|
||||||
|
@@ -65,7 +65,7 @@ static int roundboxtype = UI_CNR_ALL;
|
|||||||
void UI_draw_roundbox_corner_set(int type)
|
void UI_draw_roundbox_corner_set(int type)
|
||||||
{
|
{
|
||||||
/* Not sure the roundbox function is the best place to change this
|
/* Not sure the roundbox function is the best place to change this
|
||||||
* if this is undone, its not that big a deal, only makes curves edges
|
* if this is undone, it's not that big a deal, only makes curves edges
|
||||||
* square for the */
|
* square for the */
|
||||||
roundboxtype = type;
|
roundboxtype = type;
|
||||||
|
|
||||||
|
@@ -839,7 +839,7 @@ void gla2DDrawTranslatePt(gla2DDrawInfo *di, float wo_x, float wo_y, int *r_sc_x
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translate the \a world point from world coordiantes into screen space.
|
* Translate the \a world point from world coordinates into screen space.
|
||||||
*/
|
*/
|
||||||
void gla2DDrawTranslatePtv(gla2DDrawInfo *di, float world[2], int screen_r[2])
|
void gla2DDrawTranslatePtv(gla2DDrawInfo *di, float world[2], int screen_r[2])
|
||||||
{
|
{
|
||||||
@@ -848,7 +848,7 @@ void gla2DDrawTranslatePtv(gla2DDrawInfo *di, float world[2], int screen_r[2])
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Restores the previous OpenGL state and free's the auxilary gla data.
|
* Restores the previous OpenGL state and frees the auxiliary gla data.
|
||||||
*/
|
*/
|
||||||
void glaEnd2DDraw(gla2DDrawInfo *di)
|
void glaEnd2DDraw(gla2DDrawInfo *di)
|
||||||
{
|
{
|
||||||
|
@@ -6781,7 +6781,7 @@ static eRedrawFlag handleEventVertSlide(struct TransInfo *t, const struct wmEven
|
|||||||
#endif
|
#endif
|
||||||
case MOUSEMOVE:
|
case MOUSEMOVE:
|
||||||
{
|
{
|
||||||
/* don't recalculat the best edge */
|
/* don't recalculate the best edge */
|
||||||
const bool is_clamp = !(t->flag & T_ALT_TRANSFORM);
|
const bool is_clamp = !(t->flag & T_ALT_TRANSFORM);
|
||||||
if (is_clamp) {
|
if (is_clamp) {
|
||||||
calcVertSlideMouseActiveEdges(t, event->mval);
|
calcVertSlideMouseActiveEdges(t, event->mval);
|
||||||
|
Reference in New Issue
Block a user