소스 검색

Merge pull request #416 from zryan3/bugfix/sdl2_typos

Examples:SDL: fixed comment referencing GLFW.
omar 9 년 전
부모
커밋
c0ec9f4e63
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      examples/sdl_opengl3_example/imgui_impl_sdl_gl3.cpp
  2. 1 1
      examples/sdl_opengl_example/imgui_impl_sdl.cpp

+ 1 - 1
examples/sdl_opengl3_example/imgui_impl_sdl_gl3.cpp

@@ -356,7 +356,7 @@ void ImGui_ImplSdlGL3_NewFrame()
 	g_Time = current_time;
 
 	// Setup inputs
-	// (we already got mouse wheel, keyboard keys & characters from glfw callbacks polled in glfwPollEvents())
+	// (we already got mouse wheel, keyboard keys & characters from SDL_PollEvent())
 	int mx, my;
 	Uint32 mouseMask = SDL_GetMouseState(&mx, &my);
 	if (SDL_GetWindowFlags(g_Window) & SDL_WINDOW_MOUSE_FOCUS)

+ 1 - 1
examples/sdl_opengl_example/imgui_impl_sdl.cpp

@@ -242,7 +242,7 @@ void ImGui_ImplSdl_NewFrame(SDL_Window *window)
     g_Time = current_time;
 
     // Setup inputs
-    // (we already got mouse wheel, keyboard keys & characters from glfw callbacks polled in glfwPollEvents())
+    // (we already got mouse wheel, keyboard keys & characters from SDL_PollEvent())
     int mx, my;
     Uint32 mouseMask = SDL_GetMouseState(&mx, &my);
     if (SDL_GetWindowFlags(window) & SDL_WINDOW_MOUSE_FOCUS)