Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-04 02:29:53 +0300
committerCampbell Barton <campbell@blender.org>2022-03-04 02:31:11 +0300
commit8b06c524d207f5e67ef22d6a1869c94d8f91717f (patch)
tree3a89ed263632daa2b9bd49971ef45dee46744375 /source/blender/windowmanager/intern
parentfd2519e0b6948903892c3cfc373c903337979407 (diff)
Cleanup: spelling in comments, function name
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r--source/blender/windowmanager/intern/wm.c4
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c6
-rw-r--r--source/blender/windowmanager/intern/wm_window.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c
index c333d8149ed..a55f5af03d1 100644
--- a/source/blender/windowmanager/intern/wm.c
+++ b/source/blender/windowmanager/intern/wm.c
@@ -481,7 +481,7 @@ void WM_check(bContext *C)
}
if (!G.background) {
- /* Case: fileread. */
+ /* Case: file-read. */
if ((wm->initialized & WM_WINDOW_IS_INIT) == 0) {
WM_keyconfig_init(C);
WM_autosave_init(wm);
@@ -491,7 +491,7 @@ void WM_check(bContext *C)
wm_window_ghostwindows_ensure(wm);
}
- /* Case: fileread. */
+ /* Case: file-read. */
/* NOTE: this runs in background mode to set the screen context cb. */
if ((wm->initialized & WM_WINDOW_IS_INIT) == 0) {
ED_screens_init(bmain, wm);
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 6cefbf0bae5..70e54e3e69d 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -163,15 +163,15 @@ static bool opengl_is_init = false;
void WM_init_opengl(void)
{
- /* must be called only once */
+ /* Must be called only once. */
BLI_assert(opengl_is_init == false);
if (G.background) {
- /* Ghost is still not init elsewhere in background mode. */
+ /* Ghost is still not initialized elsewhere in background mode. */
wm_ghost_init(NULL);
}
- /* Needs to be first to have an ogl context bound. */
+ /* Needs to be first to have an OpenGL context bound. */
DRW_opengl_context_create();
GPU_init();
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index e93ffe48aba..6c90e0603a5 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -614,10 +614,10 @@ static void wm_window_ghostwindow_ensure(wmWindowManager *wm, wmWindow *win, boo
}
if (win->ghostwin != NULL) {
- /* If we have no ghostwin this is a buggy window that should be removed.
+ /* If we have no `ghostwin` this is a buggy window that should be removed.
* However we still need to initialize it correctly so the screen doesn't hang. */
- /* happens after fileread */
+ /* Happens after file-read. */
wm_window_ensure_eventstate(win);
WM_window_set_dpi(win);