We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 725074c commit f97d3c0Copy full SHA for f97d3c0
src_c/window.c
@@ -183,17 +183,16 @@ window_flip(pgWindowObject *self)
183
{
184
int result;
185
186
- VIDEO_INIT_CHECK();
+ if (!self->surf) {
187
+ return RAISE(pgExc_SDLError,
188
+ "the Window has no surface associated with it, did "
189
+ "you forget to call Window.get_surface()");
190
+ }
191
192
Py_BEGIN_ALLOW_THREADS;
193
result = SDL_UpdateWindowSurface(self->_win);
194
Py_END_ALLOW_THREADS;
195
if (result) {
- if (!self->surf) {
- return RAISE(pgExc_SDLError,
- "the Window has no surface associated with it, did "
- "you forget to call Window.get_surface()");
196
- }
197
return RAISE(pgExc_SDLError, SDL_GetError());
198
}
199
Py_RETURN_NONE;
0 commit comments