Codebase list pygame-sdl2 / 5a31292
Merge tag 'upstream/6.99.11' Upstream version 6.99.11 # gpg: Signature made Wed 07 Sep 2016 00:30:44 CEST # gpg: using RSA key D9AD14B9513B51E4 # gpg: Good signature from "Markus Koschany <apo@gambaru.de>" [ultimate] # gpg: aka "Markus Koschany <markus@koschany.net>" [ultimate] # gpg: aka "Markus Koschany <apo@debian.org>" [ultimate] Markus Koschany 7 years ago
7 changed file(s) with 1040 addition(s) and 993 deletion(s). Raw diff Collapse all Expand all
00 Metadata-Version: 1.0
11 Name: pygame_sdl2
2 Version: 2.1.0-for-renpy-6.99.10
2 Version: 2.1.0-for-renpy-6.99.11
33 Summary: UNKNOWN
44 Home-page: https://github.com/renpy/pygame_sdl2
55 Author: Tom Rothamel
127127 To build on windows, change into the pygame_sdl2 checkout, clone
128128 renpy/pygame_sdl2_windeps using a command like::
129129
130 git clone https://github.com/pygame_sdl2_windeps
130 git clone https://github.com/renpy/pygame_sdl2_windeps
131131
132132 and then build and install using::
133133
135135
136136 This assumes you have installed a version of Visual Studio that is
137137 appropriate for the version of Python you are using.
138
139 C Headers
140 ^^^^^^^^^
141
142 A small number of C headers can be installed using the command::
143
144 python setup.py install_headers
145
146 These headers export functions statically, and must be initialized by
147 including "pygame_sdl2/pygame_sdl2.h" and calling
148 the (C-language) import_pygame_sdl2() function from each C file in which a
149 function will be called. The following functions are exposed:
150
151 * PySurface_AsSurface - Returns the SDL_Surface underlying a pygame_sdl2.Surface.
152 * PySurface_New - Wraps an SDL_Surface in a new pygame_sdl2.Surface.
138153
139154
140155 Contributing
0 /* Generated by Cython 0.23.4 */
0 /* Generated by Cython 0.23.5 */
11
22 #define PY_SSIZE_T_CLEAN
33 #include "Python.h"
66 #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)
77 #error Cython requires Python 2.6+ or Python 3.2+.
88 #else
9 #define CYTHON_ABI "0_23_4"
9 #define CYTHON_ABI "0_23_5"
1010 #include <stddef.h>
1111 #ifndef offsetof
1212 #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
10031003 static char __pyx_k_close_window[] = "close_window";
10041004 static char __pyx_k_default_icon[] = "default_icon";
10051005 static char __pyx_k_get_platform[] = "get_platform";
1006 static char __pyx_k_refresh_rate[] = "refresh_rate";
10061007 static char __pyx_k_default_title[] = "default_title";
10071008 static char __pyx_k_pygame_window[] = "pygame window";
10081009 static char __pyx_k_register_init[] = "register_init";
11361137 static PyObject *__pyx_n_s_rect;
11371138 static PyObject *__pyx_n_s_rectangles;
11381139 static PyObject *__pyx_n_s_red;
1140 static PyObject *__pyx_n_s_refresh_rate;
11391141 static PyObject *__pyx_n_s_register_init;
11401142 static PyObject *__pyx_n_s_register_quit;
11411143 static PyObject *__pyx_n_s_repr;
69256927 * self.current_w = dm.w
69266928 * self.current_h = dm.h # <<<<<<<<<<<<<<
69276929 *
6928 * # The rest of these are just guesses.
6930 * self.refresh_rate = dm.refresh_rate
69296931 */
69306932 __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_dm.h); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
69316933 __Pyx_GOTREF(__pyx_t_6);
69346936 }
69356937 __pyx_L5:;
69366938
6937 /* "pygame_sdl2/display.pyx":470
6939 /* "pygame_sdl2/display.pyx":469
6940 * self.current_h = dm.h
6941 *
6942 * self.refresh_rate = dm.refresh_rate # <<<<<<<<<<<<<<
6943 *
6944 * # The rest of these are just guesses.
6945 */
6946 __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_dm.refresh_rate); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6947 __Pyx_GOTREF(__pyx_t_6);
6948 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_refresh_rate, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6949 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
6950
6951 /* "pygame_sdl2/display.pyx":472
69386952 *
69396953 * # The rest of these are just guesses.
69406954 * self.hw = False # <<<<<<<<<<<<<<
69416955 * self.wm = True
69426956 * self.video_mem = 256 * 1024 * 1024
69436957 */
6944 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_hw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6945
6946 /* "pygame_sdl2/display.pyx":471
6958 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_hw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6959
6960 /* "pygame_sdl2/display.pyx":473
69476961 * # The rest of these are just guesses.
69486962 * self.hw = False
69496963 * self.wm = True # <<<<<<<<<<<<<<
69506964 * self.video_mem = 256 * 1024 * 1024
69516965 *
69526966 */
6953 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_wm, Py_True) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6954
6955 /* "pygame_sdl2/display.pyx":472
6967 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_wm, Py_True) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6968
6969 /* "pygame_sdl2/display.pyx":474
69566970 * self.hw = False
69576971 * self.wm = True
69586972 * self.video_mem = 256 * 1024 * 1024 # <<<<<<<<<<<<<<
69596973 *
69606974 * self.blit_hw = False
69616975 */
6962 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_video_mem, __pyx_int_268435456) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6963
6964 /* "pygame_sdl2/display.pyx":474
6976 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_video_mem, __pyx_int_268435456) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6977
6978 /* "pygame_sdl2/display.pyx":476
69656979 * self.video_mem = 256 * 1024 * 1024
69666980 *
69676981 * self.blit_hw = False # <<<<<<<<<<<<<<
69686982 * self.blit_hw_CC = False
69696983 * self.blit_hw_A = False
69706984 */
6971 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6972
6973 /* "pygame_sdl2/display.pyx":475
6985 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6986
6987 /* "pygame_sdl2/display.pyx":477
69746988 *
69756989 * self.blit_hw = False
69766990 * self.blit_hw_CC = False # <<<<<<<<<<<<<<
69776991 * self.blit_hw_A = False
69786992 *
69796993 */
6980 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw_CC, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6981
6982 /* "pygame_sdl2/display.pyx":476
6994 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw_CC, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 477; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6995
6996 /* "pygame_sdl2/display.pyx":478
69836997 * self.blit_hw = False
69846998 * self.blit_hw_CC = False
69856999 * self.blit_hw_A = False # <<<<<<<<<<<<<<
69867000 *
69877001 * self.blit_sw = False
69887002 */
6989 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw_A, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6990
6991 /* "pygame_sdl2/display.pyx":478
7003 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw_A, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7004
7005 /* "pygame_sdl2/display.pyx":480
69927006 * self.blit_hw_A = False
69937007 *
69947008 * self.blit_sw = False # <<<<<<<<<<<<<<
69957009 * self.blit_sw_CC = False
69967010 * self.blit_sw_A = False
69977011 */
6998 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6999
7000 /* "pygame_sdl2/display.pyx":479
7012 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7013
7014 /* "pygame_sdl2/display.pyx":481
70017015 *
70027016 * self.blit_sw = False
70037017 * self.blit_sw_CC = False # <<<<<<<<<<<<<<
70047018 * self.blit_sw_A = False
70057019 *
70067020 */
7007 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw_CC, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7008
7009 /* "pygame_sdl2/display.pyx":480
7021 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw_CC, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7022
7023 /* "pygame_sdl2/display.pyx":482
70107024 * self.blit_sw = False
70117025 * self.blit_sw_CC = False
70127026 * self.blit_sw_A = False # <<<<<<<<<<<<<<
70137027 *
70147028 * def __repr__(self):
70157029 */
7016 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw_A, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7030 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw_A, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
70177031
70187032 /* "pygame_sdl2/display.pyx":425
70197033 * class Info(object):
70407054 return __pyx_r;
70417055 }
70427056
7043 /* "pygame_sdl2/display.pyx":482
7057 /* "pygame_sdl2/display.pyx":484
70447058 * self.blit_sw_A = False
70457059 *
70467060 * def __repr__(self): # <<<<<<<<<<<<<<
70757089 int __pyx_clineno = 0;
70767090 __Pyx_RefNannySetupContext("__repr__", 0);
70777091
7078 /* "pygame_sdl2/display.pyx":483
7092 /* "pygame_sdl2/display.pyx":485
70797093 *
70807094 * def __repr__(self):
70817095 * return "<Info({!r})>".format(self.__dict__) # <<<<<<<<<<<<<<
70837097 *
70847098 */
70857099 __Pyx_XDECREF(__pyx_r);
7086 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_Info_r, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7100 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_Info_r, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
70877101 __Pyx_GOTREF(__pyx_t_2);
7088 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_dict); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7102 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_dict); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
70897103 __Pyx_GOTREF(__pyx_t_3);
70907104 __pyx_t_4 = NULL;
70917105 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) {
70987112 }
70997113 }
71007114 if (!__pyx_t_4) {
7101 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7115 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
71027116 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
71037117 __Pyx_GOTREF(__pyx_t_1);
71047118 } else {
7105 __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7119 __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
71067120 __Pyx_GOTREF(__pyx_t_5);
71077121 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
71087122 __Pyx_GIVEREF(__pyx_t_3);
71097123 PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3);
71107124 __pyx_t_3 = 0;
7111 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7125 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
71127126 __Pyx_GOTREF(__pyx_t_1);
71137127 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
71147128 }
71177131 __pyx_t_1 = 0;
71187132 goto __pyx_L0;
71197133
7120 /* "pygame_sdl2/display.pyx":482
7134 /* "pygame_sdl2/display.pyx":484
71217135 * self.blit_sw_A = False
71227136 *
71237137 * def __repr__(self): # <<<<<<<<<<<<<<
71407154 return __pyx_r;
71417155 }
71427156
7143 /* "pygame_sdl2/display.pyx":486
7157 /* "pygame_sdl2/display.pyx":488
71447158 *
71457159 *
71467160 * def get_wm_info(): # <<<<<<<<<<<<<<
71747188 int __pyx_clineno = 0;
71757189 __Pyx_RefNannySetupContext("get_wm_info", 0);
71767190
7177 /* "pygame_sdl2/display.pyx":487
7191 /* "pygame_sdl2/display.pyx":489
71787192 *
71797193 * def get_wm_info():
71807194 * if main_window: # <<<<<<<<<<<<<<
71817195 * return main_window.get_wm_info()
71827196 *
71837197 */
7184 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7198 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
71857199 if (__pyx_t_1) {
71867200
7187 /* "pygame_sdl2/display.pyx":488
7201 /* "pygame_sdl2/display.pyx":490
71887202 * def get_wm_info():
71897203 * if main_window:
71907204 * return main_window.get_wm_info() # <<<<<<<<<<<<<<
71927206 * return {}
71937207 */
71947208 __Pyx_XDECREF(__pyx_r);
7195 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_wm_info); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7209 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_wm_info); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
71967210 __Pyx_GOTREF(__pyx_t_3);
71977211 __pyx_t_4 = NULL;
71987212 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
72057219 }
72067220 }
72077221 if (__pyx_t_4) {
7208 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7222 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
72097223 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
72107224 } else {
7211 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7225 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
72127226 }
72137227 __Pyx_GOTREF(__pyx_t_2);
72147228 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
72167230 __pyx_t_2 = 0;
72177231 goto __pyx_L0;
72187232
7219 /* "pygame_sdl2/display.pyx":487
7233 /* "pygame_sdl2/display.pyx":489
72207234 *
72217235 * def get_wm_info():
72227236 * if main_window: # <<<<<<<<<<<<<<
72257239 */
72267240 }
72277241
7228 /* "pygame_sdl2/display.pyx":490
7242 /* "pygame_sdl2/display.pyx":492
72297243 * return main_window.get_wm_info()
72307244 *
72317245 * return {} # <<<<<<<<<<<<<<
72337247 *
72347248 */
72357249 __Pyx_XDECREF(__pyx_r);
7236 __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7250 __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
72377251 __Pyx_GOTREF(__pyx_t_2);
72387252 __pyx_r = __pyx_t_2;
72397253 __pyx_t_2 = 0;
72407254 goto __pyx_L0;
72417255
7242 /* "pygame_sdl2/display.pyx":486
7256 /* "pygame_sdl2/display.pyx":488
72437257 *
72447258 *
72457259 * def get_wm_info(): # <<<<<<<<<<<<<<
72607274 return __pyx_r;
72617275 }
72627276
7263 /* "pygame_sdl2/display.pyx":493
7277 /* "pygame_sdl2/display.pyx":495
72647278 *
72657279 *
72667280 * def get_num_video_displays(): # <<<<<<<<<<<<<<
72967310 int __pyx_clineno = 0;
72977311 __Pyx_RefNannySetupContext("get_num_video_displays", 0);
72987312
7299 /* "pygame_sdl2/display.pyx":498
7313 /* "pygame_sdl2/display.pyx":500
73007314 * """
73017315 *
73027316 * rv = SDL_GetNumVideoDisplays() # <<<<<<<<<<<<<<
73057319 */
73067320 __pyx_v_rv = SDL_GetNumVideoDisplays();
73077321
7308 /* "pygame_sdl2/display.pyx":500
7322 /* "pygame_sdl2/display.pyx":502
73097323 * rv = SDL_GetNumVideoDisplays()
73107324 *
73117325 * if rv < 0: # <<<<<<<<<<<<<<
73157329 __pyx_t_1 = ((__pyx_v_rv < 0) != 0);
73167330 if (__pyx_t_1) {
73177331
7318 /* "pygame_sdl2/display.pyx":501
7332 /* "pygame_sdl2/display.pyx":503
73197333 *
73207334 * if rv < 0:
73217335 * raise error() # <<<<<<<<<<<<<<
73227336 *
73237337 * return rv
73247338 */
7325 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7339 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
73267340 __Pyx_GOTREF(__pyx_t_3);
73277341 __pyx_t_4 = NULL;
73287342 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) {
73357349 }
73367350 }
73377351 if (__pyx_t_4) {
7338 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7352 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
73397353 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
73407354 } else {
7341 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7355 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
73427356 }
73437357 __Pyx_GOTREF(__pyx_t_2);
73447358 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
73457359 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
73467360 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7347 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7348
7349 /* "pygame_sdl2/display.pyx":500
7361 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7362
7363 /* "pygame_sdl2/display.pyx":502
73507364 * rv = SDL_GetNumVideoDisplays()
73517365 *
73527366 * if rv < 0: # <<<<<<<<<<<<<<
73557369 */
73567370 }
73577371
7358 /* "pygame_sdl2/display.pyx":503
7372 /* "pygame_sdl2/display.pyx":505
73597373 * raise error()
73607374 *
73617375 * return rv # <<<<<<<<<<<<<<
73637377 *
73647378 */
73657379 __Pyx_XDECREF(__pyx_r);
7366 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7380 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
73677381 __Pyx_GOTREF(__pyx_t_2);
73687382 __pyx_r = __pyx_t_2;
73697383 __pyx_t_2 = 0;
73707384 goto __pyx_L0;
73717385
7372 /* "pygame_sdl2/display.pyx":493
7386 /* "pygame_sdl2/display.pyx":495
73737387 *
73747388 *
73757389 * def get_num_video_displays(): # <<<<<<<<<<<<<<
73907404 return __pyx_r;
73917405 }
73927406
7393 /* "pygame_sdl2/display.pyx":506
7407 /* "pygame_sdl2/display.pyx":508
73947408 *
73957409 *
73967410 * def list_modes(depth=0, flags=0, display=0): # <<<<<<<<<<<<<<
74477461 }
74487462 }
74497463 if (unlikely(kw_args > 0)) {
7450 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "list_modes") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7464 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "list_modes") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
74517465 }
74527466 } else {
74537467 switch (PyTuple_GET_SIZE(__pyx_args)) {
74647478 }
74657479 goto __pyx_L4_argument_unpacking_done;
74667480 __pyx_L5_argtuple_error:;
7467 __Pyx_RaiseArgtupleInvalid("list_modes", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7481 __Pyx_RaiseArgtupleInvalid("list_modes", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
74687482 __pyx_L3_error:;
74697483 __Pyx_AddTraceback("pygame_sdl2.display.list_modes", __pyx_clineno, __pyx_lineno, __pyx_filename);
74707484 __Pyx_RefNannyFinishContext();
74987512 int __pyx_clineno = 0;
74997513 __Pyx_RefNannySetupContext("list_modes", 0);
75007514
7501 /* "pygame_sdl2/display.pyx":516
7515 /* "pygame_sdl2/display.pyx":518
75027516 * cdef SDL_DisplayMode mode
75037517 *
75047518 * rv = [ ] # <<<<<<<<<<<<<<
75057519 *
75067520 * num_modes = SDL_GetNumDisplayModes(display)
75077521 */
7508 __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7522 __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75097523 __Pyx_GOTREF(__pyx_t_1);
75107524 __pyx_v_rv = ((PyObject*)__pyx_t_1);
75117525 __pyx_t_1 = 0;
75127526
7513 /* "pygame_sdl2/display.pyx":518
7527 /* "pygame_sdl2/display.pyx":520
75147528 * rv = [ ]
75157529 *
75167530 * num_modes = SDL_GetNumDisplayModes(display) # <<<<<<<<<<<<<<
75177531 * if num_modes < 0:
75187532 * raise error()
75197533 */
7520 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_v_display); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7534 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_v_display); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75217535 __pyx_v_num_modes = SDL_GetNumDisplayModes(__pyx_t_2);
75227536
7523 /* "pygame_sdl2/display.pyx":519
7537 /* "pygame_sdl2/display.pyx":521
75247538 *
75257539 * num_modes = SDL_GetNumDisplayModes(display)
75267540 * if num_modes < 0: # <<<<<<<<<<<<<<
75307544 __pyx_t_3 = ((__pyx_v_num_modes < 0) != 0);
75317545 if (__pyx_t_3) {
75327546
7533 /* "pygame_sdl2/display.pyx":520
7547 /* "pygame_sdl2/display.pyx":522
75347548 * num_modes = SDL_GetNumDisplayModes(display)
75357549 * if num_modes < 0:
75367550 * raise error() # <<<<<<<<<<<<<<
75377551 *
75387552 * for 0 <= i < num_modes:
75397553 */
7540 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7554 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75417555 __Pyx_GOTREF(__pyx_t_4);
75427556 __pyx_t_5 = NULL;
75437557 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_4))) {
75507564 }
75517565 }
75527566 if (__pyx_t_5) {
7553 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7567 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75547568 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
75557569 } else {
7556 __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7570 __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75577571 }
75587572 __Pyx_GOTREF(__pyx_t_1);
75597573 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
75607574 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
75617575 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7562 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7563
7564 /* "pygame_sdl2/display.pyx":519
7576 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7577
7578 /* "pygame_sdl2/display.pyx":521
75657579 *
75667580 * num_modes = SDL_GetNumDisplayModes(display)
75677581 * if num_modes < 0: # <<<<<<<<<<<<<<
75707584 */
75717585 }
75727586
7573 /* "pygame_sdl2/display.pyx":522
7587 /* "pygame_sdl2/display.pyx":524
75747588 * raise error()
75757589 *
75767590 * for 0 <= i < num_modes: # <<<<<<<<<<<<<<
75807594 __pyx_t_2 = __pyx_v_num_modes;
75817595 for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_2; __pyx_v_i++) {
75827596
7583 /* "pygame_sdl2/display.pyx":523
7597 /* "pygame_sdl2/display.pyx":525
75847598 *
75857599 * for 0 <= i < num_modes:
75867600 * if SDL_GetDisplayMode(display, i, &mode) == 0: # <<<<<<<<<<<<<<
75877601 * t = (mode.w, mode.h)
75887602 * if t not in rv:
75897603 */
7590 __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_v_display); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7604 __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_v_display); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75917605 __pyx_t_3 = ((SDL_GetDisplayMode(__pyx_t_6, __pyx_v_i, (&__pyx_v_mode)) == 0) != 0);
75927606 if (__pyx_t_3) {
75937607
7594 /* "pygame_sdl2/display.pyx":524
7608 /* "pygame_sdl2/display.pyx":526
75957609 * for 0 <= i < num_modes:
75967610 * if SDL_GetDisplayMode(display, i, &mode) == 0:
75977611 * t = (mode.w, mode.h) # <<<<<<<<<<<<<<
75987612 * if t not in rv:
75997613 * rv.append(t)
76007614 */
7601 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_mode.w); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7615 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_mode.w); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
76027616 __Pyx_GOTREF(__pyx_t_1);
7603 __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_mode.h); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7617 __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_mode.h); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
76047618 __Pyx_GOTREF(__pyx_t_4);
7605 __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7619 __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
76067620 __Pyx_GOTREF(__pyx_t_5);
76077621 __Pyx_GIVEREF(__pyx_t_1);
76087622 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
76137627 __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_5);
76147628 __pyx_t_5 = 0;
76157629
7616 /* "pygame_sdl2/display.pyx":525
7630 /* "pygame_sdl2/display.pyx":527
76177631 * if SDL_GetDisplayMode(display, i, &mode) == 0:
76187632 * t = (mode.w, mode.h)
76197633 * if t not in rv: # <<<<<<<<<<<<<<
76207634 * rv.append(t)
76217635 *
76227636 */
7623 __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_t, __pyx_v_rv, Py_NE)); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7637 __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_t, __pyx_v_rv, Py_NE)); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
76247638 __pyx_t_7 = (__pyx_t_3 != 0);
76257639 if (__pyx_t_7) {
76267640
7627 /* "pygame_sdl2/display.pyx":526
7641 /* "pygame_sdl2/display.pyx":528
76287642 * t = (mode.w, mode.h)
76297643 * if t not in rv:
76307644 * rv.append(t) # <<<<<<<<<<<<<<
76317645 *
76327646 * return rv
76337647 */
7634 __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_rv, __pyx_v_t); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7635
7636 /* "pygame_sdl2/display.pyx":525
7648 __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_rv, __pyx_v_t); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7649
7650 /* "pygame_sdl2/display.pyx":527
76377651 * if SDL_GetDisplayMode(display, i, &mode) == 0:
76387652 * t = (mode.w, mode.h)
76397653 * if t not in rv: # <<<<<<<<<<<<<<
76427656 */
76437657 }
76447658
7645 /* "pygame_sdl2/display.pyx":523
7659 /* "pygame_sdl2/display.pyx":525
76467660 *
76477661 * for 0 <= i < num_modes:
76487662 * if SDL_GetDisplayMode(display, i, &mode) == 0: # <<<<<<<<<<<<<<
76527666 }
76537667 }
76547668
7655 /* "pygame_sdl2/display.pyx":528
7669 /* "pygame_sdl2/display.pyx":530
76567670 * rv.append(t)
76577671 *
76587672 * return rv # <<<<<<<<<<<<<<
76647678 __pyx_r = __pyx_v_rv;
76657679 goto __pyx_L0;
76667680
7667 /* "pygame_sdl2/display.pyx":506
7681 /* "pygame_sdl2/display.pyx":508
76687682 *
76697683 *
76707684 * def list_modes(depth=0, flags=0, display=0): # <<<<<<<<<<<<<<
76877701 return __pyx_r;
76887702 }
76897703
7690 /* "pygame_sdl2/display.pyx":531
7704 /* "pygame_sdl2/display.pyx":533
76917705 *
76927706 *
76937707 * def mode_ok(size, flags=0, depth=0): # <<<<<<<<<<<<<<
77417755 }
77427756 }
77437757 if (unlikely(kw_args > 0)) {
7744 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mode_ok") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7758 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mode_ok") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
77457759 }
77467760 } else {
77477761 switch (PyTuple_GET_SIZE(__pyx_args)) {
77587772 }
77597773 goto __pyx_L4_argument_unpacking_done;
77607774 __pyx_L5_argtuple_error:;
7761 __Pyx_RaiseArgtupleInvalid("mode_ok", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7775 __Pyx_RaiseArgtupleInvalid("mode_ok", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
77627776 __pyx_L3_error:;
77637777 __Pyx_AddTraceback("pygame_sdl2.display.mode_ok", __pyx_clineno, __pyx_lineno, __pyx_filename);
77647778 __Pyx_RefNannyFinishContext();
77847798 int __pyx_clineno = 0;
77857799 __Pyx_RefNannySetupContext("mode_ok", 0);
77867800
7787 /* "pygame_sdl2/display.pyx":536
7801 /* "pygame_sdl2/display.pyx":538
77887802 * """
77897803 *
77907804 * return tuple(size) in list_modes() # <<<<<<<<<<<<<<
77927806 * def gl_reset_attributes():
77937807 */
77947808 __Pyx_XDECREF(__pyx_r);
7795 __pyx_t_1 = PySequence_Tuple(__pyx_v_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7809 __pyx_t_1 = PySequence_Tuple(__pyx_v_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
77967810 __Pyx_GOTREF(__pyx_t_1);
7797 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_list_modes); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7811 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_list_modes); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
77987812 __Pyx_GOTREF(__pyx_t_3);
77997813 __pyx_t_4 = NULL;
78007814 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) {
78077821 }
78087822 }
78097823 if (__pyx_t_4) {
7810 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7824 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
78117825 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
78127826 } else {
7813 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7827 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
78147828 }
78157829 __Pyx_GOTREF(__pyx_t_2);
78167830 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7817 __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7831 __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
78187832 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
78197833 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7820 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7834 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
78217835 __Pyx_GOTREF(__pyx_t_2);
78227836 __pyx_r = __pyx_t_2;
78237837 __pyx_t_2 = 0;
78247838 goto __pyx_L0;
78257839
7826 /* "pygame_sdl2/display.pyx":531
7840 /* "pygame_sdl2/display.pyx":533
78277841 *
78287842 *
78297843 * def mode_ok(size, flags=0, depth=0): # <<<<<<<<<<<<<<
78457859 return __pyx_r;
78467860 }
78477861
7848 /* "pygame_sdl2/display.pyx":538
7862 /* "pygame_sdl2/display.pyx":540
78497863 * return tuple(size) in list_modes()
78507864 *
78517865 * def gl_reset_attributes(): # <<<<<<<<<<<<<<
78727886 __Pyx_RefNannyDeclarations
78737887 __Pyx_RefNannySetupContext("gl_reset_attributes", 0);
78747888
7875 /* "pygame_sdl2/display.pyx":539
7889 /* "pygame_sdl2/display.pyx":541
78767890 *
78777891 * def gl_reset_attributes():
78787892 * SDL_GL_ResetAttributes() # <<<<<<<<<<<<<<
78817895 */
78827896 SDL_GL_ResetAttributes();
78837897
7884 /* "pygame_sdl2/display.pyx":538
7898 /* "pygame_sdl2/display.pyx":540
78857899 * return tuple(size) in list_modes()
78867900 *
78877901 * def gl_reset_attributes(): # <<<<<<<<<<<<<<
78967910 return __pyx_r;
78977911 }
78987912
7899 /* "pygame_sdl2/display.pyx":541
7913 /* "pygame_sdl2/display.pyx":543
79007914 * SDL_GL_ResetAttributes()
79017915 *
79027916 * def gl_set_attribute(flag, value): # <<<<<<<<<<<<<<
79367950 case 1:
79377951 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
79387952 else {
7939 __Pyx_RaiseArgtupleInvalid("gl_set_attribute", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7953 __Pyx_RaiseArgtupleInvalid("gl_set_attribute", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
79407954 }
79417955 }
79427956 if (unlikely(kw_args > 0)) {
7943 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "gl_set_attribute") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7957 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "gl_set_attribute") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
79447958 }
79457959 } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
79467960 goto __pyx_L5_argtuple_error;
79537967 }
79547968 goto __pyx_L4_argument_unpacking_done;
79557969 __pyx_L5_argtuple_error:;
7956 __Pyx_RaiseArgtupleInvalid("gl_set_attribute", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7970 __Pyx_RaiseArgtupleInvalid("gl_set_attribute", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
79577971 __pyx_L3_error:;
79587972 __Pyx_AddTraceback("pygame_sdl2.display.gl_set_attribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
79597973 __Pyx_RefNannyFinishContext();
79817995 int __pyx_clineno = 0;
79827996 __Pyx_RefNannySetupContext("gl_set_attribute", 0);
79837997
7984 /* "pygame_sdl2/display.pyx":543
7998 /* "pygame_sdl2/display.pyx":545
79857999 * def gl_set_attribute(flag, value):
79868000 *
79878001 * if flag == GL_SWAP_CONTROL: # <<<<<<<<<<<<<<
79888002 * if ios:
79898003 * return
79908004 */
7991 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_GL_SWAP_CONTROL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8005 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_GL_SWAP_CONTROL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
79928006 __Pyx_GOTREF(__pyx_t_1);
7993 __pyx_t_2 = PyObject_RichCompare(__pyx_v_flag, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8007 __pyx_t_2 = PyObject_RichCompare(__pyx_v_flag, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
79948008 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7995 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8009 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
79968010 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
79978011 if (__pyx_t_3) {
79988012
7999 /* "pygame_sdl2/display.pyx":544
8013 /* "pygame_sdl2/display.pyx":546
80008014 *
80018015 * if flag == GL_SWAP_CONTROL:
80028016 * if ios: # <<<<<<<<<<<<<<
80038017 * return
80048018 *
80058019 */
8006 __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ios); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8020 __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ios); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
80078021 __Pyx_GOTREF(__pyx_t_2);
8008 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8022 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
80098023 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
80108024 if (__pyx_t_3) {
80118025
8012 /* "pygame_sdl2/display.pyx":545
8026 /* "pygame_sdl2/display.pyx":547
80138027 * if flag == GL_SWAP_CONTROL:
80148028 * if ios:
80158029 * return # <<<<<<<<<<<<<<
80208034 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
80218035 goto __pyx_L0;
80228036
8023 /* "pygame_sdl2/display.pyx":544
8037 /* "pygame_sdl2/display.pyx":546
80248038 *
80258039 * if flag == GL_SWAP_CONTROL:
80268040 * if ios: # <<<<<<<<<<<<<<
80298043 */
80308044 }
80318045
8032 /* "pygame_sdl2/display.pyx":550
8046 /* "pygame_sdl2/display.pyx":552
80338047 * # to deal with the case where the negative interval isn't
80348048 * # supported. Then give up and carry on.
80358049 * if SDL_GL_SetSwapInterval(value): # <<<<<<<<<<<<<<
80368050 * SDL_GL_SetSwapInterval(-value)
80378051 *
80388052 */
8039 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8053 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
80408054 __pyx_t_3 = (SDL_GL_SetSwapInterval(__pyx_t_4) != 0);
80418055 if (__pyx_t_3) {
80428056
8043 /* "pygame_sdl2/display.pyx":551
8057 /* "pygame_sdl2/display.pyx":553
80448058 * # supported. Then give up and carry on.
80458059 * if SDL_GL_SetSwapInterval(value):
80468060 * SDL_GL_SetSwapInterval(-value) # <<<<<<<<<<<<<<
80478061 *
80488062 * default_swap_control = value
80498063 */
8050 __pyx_t_2 = PyNumber_Negative(__pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 551; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8064 __pyx_t_2 = PyNumber_Negative(__pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
80518065 __Pyx_GOTREF(__pyx_t_2);
8052 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 551; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8066 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
80538067 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
80548068 SDL_GL_SetSwapInterval(__pyx_t_4);
80558069
8056 /* "pygame_sdl2/display.pyx":550
8070 /* "pygame_sdl2/display.pyx":552
80578071 * # to deal with the case where the negative interval isn't
80588072 * # supported. Then give up and carry on.
80598073 * if SDL_GL_SetSwapInterval(value): # <<<<<<<<<<<<<<
80628076 */
80638077 }
80648078
8065 /* "pygame_sdl2/display.pyx":553
8079 /* "pygame_sdl2/display.pyx":555
80668080 * SDL_GL_SetSwapInterval(-value)
80678081 *
80688082 * default_swap_control = value # <<<<<<<<<<<<<<
80728086 __Pyx_INCREF(__pyx_v_value);
80738087 __pyx_v_default_swap_control = __pyx_v_value;
80748088
8075 /* "pygame_sdl2/display.pyx":554
8089 /* "pygame_sdl2/display.pyx":556
80768090 *
80778091 * default_swap_control = value
80788092 * return # <<<<<<<<<<<<<<
80838097 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
80848098 goto __pyx_L0;
80858099
8086 /* "pygame_sdl2/display.pyx":543
8100 /* "pygame_sdl2/display.pyx":545
80878101 * def gl_set_attribute(flag, value):
80888102 *
80898103 * if flag == GL_SWAP_CONTROL: # <<<<<<<<<<<<<<
80928106 */
80938107 }
80948108
8095 /* "pygame_sdl2/display.pyx":556
8109 /* "pygame_sdl2/display.pyx":558
80968110 * return
80978111 *
80988112 * if SDL_GL_SetAttribute(flag, value): # <<<<<<<<<<<<<<
80998113 * raise error()
81008114 *
81018115 */
8102 __pyx_t_5 = ((SDL_GLattr)__Pyx_PyInt_As_SDL_GLattr(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8103 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8116 __pyx_t_5 = ((SDL_GLattr)__Pyx_PyInt_As_SDL_GLattr(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8117 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
81048118 __pyx_t_3 = (SDL_GL_SetAttribute(__pyx_t_5, __pyx_t_4) != 0);
81058119 if (__pyx_t_3) {
81068120
8107 /* "pygame_sdl2/display.pyx":557
8121 /* "pygame_sdl2/display.pyx":559
81088122 *
81098123 * if SDL_GL_SetAttribute(flag, value):
81108124 * raise error() # <<<<<<<<<<<<<<
81118125 *
81128126 * def gl_get_attribute(flag):
81138127 */
8114 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8128 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
81158129 __Pyx_GOTREF(__pyx_t_1);
81168130 __pyx_t_6 = NULL;
81178131 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_1))) {
81248138 }
81258139 }
81268140 if (__pyx_t_6) {
8127 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8141 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
81288142 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
81298143 } else {
8130 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8144 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
81318145 }
81328146 __Pyx_GOTREF(__pyx_t_2);
81338147 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
81348148 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
81358149 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8136 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8137
8138 /* "pygame_sdl2/display.pyx":556
8150 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8151
8152 /* "pygame_sdl2/display.pyx":558
81398153 * return
81408154 *
81418155 * if SDL_GL_SetAttribute(flag, value): # <<<<<<<<<<<<<<
81448158 */
81458159 }
81468160
8147 /* "pygame_sdl2/display.pyx":541
8161 /* "pygame_sdl2/display.pyx":543
81488162 * SDL_GL_ResetAttributes()
81498163 *
81508164 * def gl_set_attribute(flag, value): # <<<<<<<<<<<<<<
81688182 return __pyx_r;
81698183 }
81708184
8171 /* "pygame_sdl2/display.pyx":559
8185 /* "pygame_sdl2/display.pyx":561
81728186 * raise error()
81738187 *
81748188 * def gl_get_attribute(flag): # <<<<<<<<<<<<<<
82048218 int __pyx_clineno = 0;
82058219 __Pyx_RefNannySetupContext("gl_get_attribute", 0);
82068220
8207 /* "pygame_sdl2/display.pyx":562
8221 /* "pygame_sdl2/display.pyx":564
82088222 * cdef int rv
82098223 *
82108224 * if flag == GL_SWAP_CONTROL: # <<<<<<<<<<<<<<
82118225 * return SDL_GL_GetSwapInterval()
82128226 *
82138227 */
8214 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_GL_SWAP_CONTROL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8228 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_GL_SWAP_CONTROL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82158229 __Pyx_GOTREF(__pyx_t_1);
8216 __pyx_t_2 = PyObject_RichCompare(__pyx_v_flag, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8230 __pyx_t_2 = PyObject_RichCompare(__pyx_v_flag, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82178231 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8218 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8232 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82198233 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
82208234 if (__pyx_t_3) {
82218235
8222 /* "pygame_sdl2/display.pyx":563
8236 /* "pygame_sdl2/display.pyx":565
82238237 *
82248238 * if flag == GL_SWAP_CONTROL:
82258239 * return SDL_GL_GetSwapInterval() # <<<<<<<<<<<<<<
82278241 * if SDL_GL_GetAttribute(flag, &rv):
82288242 */
82298243 __Pyx_XDECREF(__pyx_r);
8230 __pyx_t_2 = __Pyx_PyInt_From_int(SDL_GL_GetSwapInterval()); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8244 __pyx_t_2 = __Pyx_PyInt_From_int(SDL_GL_GetSwapInterval()); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82318245 __Pyx_GOTREF(__pyx_t_2);
82328246 __pyx_r = __pyx_t_2;
82338247 __pyx_t_2 = 0;
82348248 goto __pyx_L0;
82358249
8236 /* "pygame_sdl2/display.pyx":562
8250 /* "pygame_sdl2/display.pyx":564
82378251 * cdef int rv
82388252 *
82398253 * if flag == GL_SWAP_CONTROL: # <<<<<<<<<<<<<<
82428256 */
82438257 }
82448258
8245 /* "pygame_sdl2/display.pyx":565
8259 /* "pygame_sdl2/display.pyx":567
82468260 * return SDL_GL_GetSwapInterval()
82478261 *
82488262 * if SDL_GL_GetAttribute(flag, &rv): # <<<<<<<<<<<<<<
82498263 * raise error()
82508264 *
82518265 */
8252 __pyx_t_4 = ((SDL_GLattr)__Pyx_PyInt_As_SDL_GLattr(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8266 __pyx_t_4 = ((SDL_GLattr)__Pyx_PyInt_As_SDL_GLattr(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82538267 __pyx_t_3 = (SDL_GL_GetAttribute(__pyx_t_4, (&__pyx_v_rv)) != 0);
82548268 if (__pyx_t_3) {
82558269
8256 /* "pygame_sdl2/display.pyx":566
8270 /* "pygame_sdl2/display.pyx":568
82578271 *
82588272 * if SDL_GL_GetAttribute(flag, &rv):
82598273 * raise error() # <<<<<<<<<<<<<<
82608274 *
82618275 * return rv
82628276 */
8263 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8277 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82648278 __Pyx_GOTREF(__pyx_t_1);
82658279 __pyx_t_5 = NULL;
82668280 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_1))) {
82738287 }
82748288 }
82758289 if (__pyx_t_5) {
8276 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8290 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82778291 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
82788292 } else {
8279 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8293 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82808294 }
82818295 __Pyx_GOTREF(__pyx_t_2);
82828296 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
82838297 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
82848298 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8285 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8286
8287 /* "pygame_sdl2/display.pyx":565
8299 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8300
8301 /* "pygame_sdl2/display.pyx":567
82888302 * return SDL_GL_GetSwapInterval()
82898303 *
82908304 * if SDL_GL_GetAttribute(flag, &rv): # <<<<<<<<<<<<<<
82938307 */
82948308 }
82958309
8296 /* "pygame_sdl2/display.pyx":568
8310 /* "pygame_sdl2/display.pyx":570
82978311 * raise error()
82988312 *
82998313 * return rv # <<<<<<<<<<<<<<
83018315 * def gl_load_library(path):
83028316 */
83038317 __Pyx_XDECREF(__pyx_r);
8304 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8318 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
83058319 __Pyx_GOTREF(__pyx_t_2);
83068320 __pyx_r = __pyx_t_2;
83078321 __pyx_t_2 = 0;
83088322 goto __pyx_L0;
83098323
8310 /* "pygame_sdl2/display.pyx":559
8324 /* "pygame_sdl2/display.pyx":561
83118325 * raise error()
83128326 *
83138327 * def gl_get_attribute(flag): # <<<<<<<<<<<<<<
83288342 return __pyx_r;
83298343 }
83308344
8331 /* "pygame_sdl2/display.pyx":570
8345 /* "pygame_sdl2/display.pyx":572
83328346 * return rv
83338347 *
83348348 * def gl_load_library(path): # <<<<<<<<<<<<<<
83648378 int __pyx_clineno = 0;
83658379 __Pyx_RefNannySetupContext("gl_load_library", 0);
83668380
8367 /* "pygame_sdl2/display.pyx":571
8381 /* "pygame_sdl2/display.pyx":573
83688382 *
83698383 * def gl_load_library(path):
83708384 * if path is None: # <<<<<<<<<<<<<<
83758389 __pyx_t_2 = (__pyx_t_1 != 0);
83768390 if (__pyx_t_2) {
83778391
8378 /* "pygame_sdl2/display.pyx":572
8392 /* "pygame_sdl2/display.pyx":574
83798393 * def gl_load_library(path):
83808394 * if path is None:
83818395 * if SDL_GL_LoadLibrary(NULL): # <<<<<<<<<<<<<<
83858399 __pyx_t_2 = (SDL_GL_LoadLibrary(NULL) != 0);
83868400 if (__pyx_t_2) {
83878401
8388 /* "pygame_sdl2/display.pyx":573
8402 /* "pygame_sdl2/display.pyx":575
83898403 * if path is None:
83908404 * if SDL_GL_LoadLibrary(NULL):
83918405 * raise error() # <<<<<<<<<<<<<<
83928406 * else:
83938407 * if SDL_GL_LoadLibrary(path):
83948408 */
8395 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8409 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
83968410 __Pyx_GOTREF(__pyx_t_4);
83978411 __pyx_t_5 = NULL;
83988412 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_4))) {
84058419 }
84068420 }
84078421 if (__pyx_t_5) {
8408 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8422 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84098423 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
84108424 } else {
8411 __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8425 __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84128426 }
84138427 __Pyx_GOTREF(__pyx_t_3);
84148428 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
84158429 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
84168430 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8417 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8418
8419 /* "pygame_sdl2/display.pyx":572
8431 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8432
8433 /* "pygame_sdl2/display.pyx":574
84208434 * def gl_load_library(path):
84218435 * if path is None:
84228436 * if SDL_GL_LoadLibrary(NULL): # <<<<<<<<<<<<<<
84258439 */
84268440 }
84278441
8428 /* "pygame_sdl2/display.pyx":571
8442 /* "pygame_sdl2/display.pyx":573
84298443 *
84308444 * def gl_load_library(path):
84318445 * if path is None: # <<<<<<<<<<<<<<
84358449 goto __pyx_L3;
84368450 }
84378451
8438 /* "pygame_sdl2/display.pyx":575
8452 /* "pygame_sdl2/display.pyx":577
84398453 * raise error()
84408454 * else:
84418455 * if SDL_GL_LoadLibrary(path): # <<<<<<<<<<<<<<
84438457 *
84448458 */
84458459 /*else*/ {
8446 __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_path); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8460 __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_path); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84478461 __pyx_t_2 = (SDL_GL_LoadLibrary(__pyx_t_6) != 0);
84488462 if (__pyx_t_2) {
84498463
8450 /* "pygame_sdl2/display.pyx":576
8464 /* "pygame_sdl2/display.pyx":578
84518465 * else:
84528466 * if SDL_GL_LoadLibrary(path):
84538467 * raise error() # <<<<<<<<<<<<<<
84548468 *
84558469 * def gl_unload_library():
84568470 */
8457 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8471 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84588472 __Pyx_GOTREF(__pyx_t_4);
84598473 __pyx_t_5 = NULL;
84608474 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_4))) {
84678481 }
84688482 }
84698483 if (__pyx_t_5) {
8470 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8484 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84718485 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
84728486 } else {
8473 __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8487 __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84748488 }
84758489 __Pyx_GOTREF(__pyx_t_3);
84768490 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
84778491 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
84788492 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8479 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8480
8481 /* "pygame_sdl2/display.pyx":575
8493 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8494
8495 /* "pygame_sdl2/display.pyx":577
84828496 * raise error()
84838497 * else:
84848498 * if SDL_GL_LoadLibrary(path): # <<<<<<<<<<<<<<
84898503 }
84908504 __pyx_L3:;
84918505
8492 /* "pygame_sdl2/display.pyx":570
8506 /* "pygame_sdl2/display.pyx":572
84938507 * return rv
84948508 *
84958509 * def gl_load_library(path): # <<<<<<<<<<<<<<
85128526 return __pyx_r;
85138527 }
85148528
8515 /* "pygame_sdl2/display.pyx":578
8529 /* "pygame_sdl2/display.pyx":580
85168530 * raise error()
85178531 *
85188532 * def gl_unload_library(): # <<<<<<<<<<<<<<
85398553 __Pyx_RefNannyDeclarations
85408554 __Pyx_RefNannySetupContext("gl_unload_library", 0);
85418555
8542 /* "pygame_sdl2/display.pyx":579
8556 /* "pygame_sdl2/display.pyx":581
85438557 *
85448558 * def gl_unload_library():
85458559 * SDL_GL_UnloadLibrary() # <<<<<<<<<<<<<<
85488562 */
85498563 SDL_GL_UnloadLibrary();
85508564
8551 /* "pygame_sdl2/display.pyx":578
8565 /* "pygame_sdl2/display.pyx":580
85528566 * raise error()
85538567 *
85548568 * def gl_unload_library(): # <<<<<<<<<<<<<<
85638577 return __pyx_r;
85648578 }
85658579
8566 /* "pygame_sdl2/display.pyx":581
8580 /* "pygame_sdl2/display.pyx":583
85678581 * SDL_GL_UnloadLibrary()
85688582 *
85698583 * def get_active(): # <<<<<<<<<<<<<<
85978611 int __pyx_clineno = 0;
85988612 __Pyx_RefNannySetupContext("get_active", 0);
85998613
8600 /* "pygame_sdl2/display.pyx":582
8614 /* "pygame_sdl2/display.pyx":584
86018615 *
86028616 * def get_active():
86038617 * if main_window: # <<<<<<<<<<<<<<
86048618 * return main_window.get_active()
86058619 * return False
86068620 */
8607 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8621 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
86088622 if (__pyx_t_1) {
86098623
8610 /* "pygame_sdl2/display.pyx":583
8624 /* "pygame_sdl2/display.pyx":585
86118625 * def get_active():
86128626 * if main_window:
86138627 * return main_window.get_active() # <<<<<<<<<<<<<<
86158629 *
86168630 */
86178631 __Pyx_XDECREF(__pyx_r);
8618 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_active); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8632 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_active); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
86198633 __Pyx_GOTREF(__pyx_t_3);
86208634 __pyx_t_4 = NULL;
86218635 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
86288642 }
86298643 }
86308644 if (__pyx_t_4) {
8631 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8645 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
86328646 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
86338647 } else {
8634 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8648 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
86358649 }
86368650 __Pyx_GOTREF(__pyx_t_2);
86378651 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
86398653 __pyx_t_2 = 0;
86408654 goto __pyx_L0;
86418655
8642 /* "pygame_sdl2/display.pyx":582
8656 /* "pygame_sdl2/display.pyx":584
86438657 *
86448658 * def get_active():
86458659 * if main_window: # <<<<<<<<<<<<<<
86488662 */
86498663 }
86508664
8651 /* "pygame_sdl2/display.pyx":584
8665 /* "pygame_sdl2/display.pyx":586
86528666 * if main_window:
86538667 * return main_window.get_active()
86548668 * return False # <<<<<<<<<<<<<<
86608674 __pyx_r = Py_False;
86618675 goto __pyx_L0;
86628676
8663 /* "pygame_sdl2/display.pyx":581
8677 /* "pygame_sdl2/display.pyx":583
86648678 * SDL_GL_UnloadLibrary()
86658679 *
86668680 * def get_active(): # <<<<<<<<<<<<<<
86818695 return __pyx_r;
86828696 }
86838697
8684 /* "pygame_sdl2/display.pyx":586
8698 /* "pygame_sdl2/display.pyx":588
86858699 * return False
86868700 *
86878701 * def iconify(): # <<<<<<<<<<<<<<
87158729 int __pyx_clineno = 0;
87168730 __Pyx_RefNannySetupContext("iconify", 0);
87178731
8718 /* "pygame_sdl2/display.pyx":587
8732 /* "pygame_sdl2/display.pyx":589
87198733 *
87208734 * def iconify():
87218735 * if main_window: # <<<<<<<<<<<<<<
87228736 * return main_window.iconify()
87238737 *
87248738 */
8725 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8739 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
87268740 if (__pyx_t_1) {
87278741
8728 /* "pygame_sdl2/display.pyx":588
8742 /* "pygame_sdl2/display.pyx":590
87298743 * def iconify():
87308744 * if main_window:
87318745 * return main_window.iconify() # <<<<<<<<<<<<<<
87338747 * return False
87348748 */
87358749 __Pyx_XDECREF(__pyx_r);
8736 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_iconify); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8750 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_iconify); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
87378751 __Pyx_GOTREF(__pyx_t_3);
87388752 __pyx_t_4 = NULL;
87398753 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
87468760 }
87478761 }
87488762 if (__pyx_t_4) {
8749 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8763 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
87508764 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
87518765 } else {
8752 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8766 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
87538767 }
87548768 __Pyx_GOTREF(__pyx_t_2);
87558769 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
87578771 __pyx_t_2 = 0;
87588772 goto __pyx_L0;
87598773
8760 /* "pygame_sdl2/display.pyx":587
8774 /* "pygame_sdl2/display.pyx":589
87618775 *
87628776 * def iconify():
87638777 * if main_window: # <<<<<<<<<<<<<<
87668780 */
87678781 }
87688782
8769 /* "pygame_sdl2/display.pyx":590
8783 /* "pygame_sdl2/display.pyx":592
87708784 * return main_window.iconify()
87718785 *
87728786 * return False # <<<<<<<<<<<<<<
87788792 __pyx_r = Py_False;
87798793 goto __pyx_L0;
87808794
8781 /* "pygame_sdl2/display.pyx":586
8795 /* "pygame_sdl2/display.pyx":588
87828796 * return False
87838797 *
87848798 * def iconify(): # <<<<<<<<<<<<<<
87998813 return __pyx_r;
88008814 }
88018815
8802 /* "pygame_sdl2/display.pyx":592
8816 /* "pygame_sdl2/display.pyx":594
88038817 * return False
88048818 *
88058819 * def toggle_fullscreen(): # <<<<<<<<<<<<<<
88338847 int __pyx_clineno = 0;
88348848 __Pyx_RefNannySetupContext("toggle_fullscreen", 0);
88358849
8836 /* "pygame_sdl2/display.pyx":593
8850 /* "pygame_sdl2/display.pyx":595
88378851 *
88388852 * def toggle_fullscreen():
88398853 * if main_window: # <<<<<<<<<<<<<<
88408854 * return main_window.toggle_fullscreen()
88418855 *
88428856 */
8843 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8857 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 595; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
88448858 if (__pyx_t_1) {
88458859
8846 /* "pygame_sdl2/display.pyx":594
8860 /* "pygame_sdl2/display.pyx":596
88478861 * def toggle_fullscreen():
88488862 * if main_window:
88498863 * return main_window.toggle_fullscreen() # <<<<<<<<<<<<<<
88518865 * return True
88528866 */
88538867 __Pyx_XDECREF(__pyx_r);
8854 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_toggle_fullscreen); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8868 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_toggle_fullscreen); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
88558869 __Pyx_GOTREF(__pyx_t_3);
88568870 __pyx_t_4 = NULL;
88578871 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
88648878 }
88658879 }
88668880 if (__pyx_t_4) {
8867 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8881 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
88688882 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
88698883 } else {
8870 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8884 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
88718885 }
88728886 __Pyx_GOTREF(__pyx_t_2);
88738887 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
88758889 __pyx_t_2 = 0;
88768890 goto __pyx_L0;
88778891
8878 /* "pygame_sdl2/display.pyx":593
8892 /* "pygame_sdl2/display.pyx":595
88798893 *
88808894 * def toggle_fullscreen():
88818895 * if main_window: # <<<<<<<<<<<<<<
88848898 */
88858899 }
88868900
8887 /* "pygame_sdl2/display.pyx":596
8901 /* "pygame_sdl2/display.pyx":598
88888902 * return main_window.toggle_fullscreen()
88898903 *
88908904 * return True # <<<<<<<<<<<<<<
88968910 __pyx_r = Py_True;
88978911 goto __pyx_L0;
88988912
8899 /* "pygame_sdl2/display.pyx":592
8913 /* "pygame_sdl2/display.pyx":594
89008914 * return False
89018915 *
89028916 * def toggle_fullscreen(): # <<<<<<<<<<<<<<
89178931 return __pyx_r;
89188932 }
89198933
8920 /* "pygame_sdl2/display.pyx":598
8934 /* "pygame_sdl2/display.pyx":600
89218935 * return True
89228936 *
89238937 * def set_gamma(red, green=None, blue=None): # <<<<<<<<<<<<<<
89708984 }
89718985 }
89728986 if (unlikely(kw_args > 0)) {
8973 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_gamma") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8987 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_gamma") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
89748988 }
89758989 } else {
89768990 switch (PyTuple_GET_SIZE(__pyx_args)) {
89879001 }
89889002 goto __pyx_L4_argument_unpacking_done;
89899003 __pyx_L5_argtuple_error:;
8990 __Pyx_RaiseArgtupleInvalid("set_gamma", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9004 __Pyx_RaiseArgtupleInvalid("set_gamma", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
89919005 __pyx_L3_error:;
89929006 __Pyx_AddTraceback("pygame_sdl2.display.set_gamma", __pyx_clineno, __pyx_lineno, __pyx_filename);
89939007 __Pyx_RefNannyFinishContext();
90149028 int __pyx_clineno = 0;
90159029 __Pyx_RefNannySetupContext("set_gamma", 0);
90169030
9017 /* "pygame_sdl2/display.pyx":599
9031 /* "pygame_sdl2/display.pyx":601
90189032 *
90199033 * def set_gamma(red, green=None, blue=None):
90209034 * if main_window: # <<<<<<<<<<<<<<
90219035 * return main_window.set_gamma(red, green, blue)
90229036 * return False
90239037 */
9024 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9038 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
90259039 if (__pyx_t_1) {
90269040
9027 /* "pygame_sdl2/display.pyx":600
9041 /* "pygame_sdl2/display.pyx":602
90289042 * def set_gamma(red, green=None, blue=None):
90299043 * if main_window:
90309044 * return main_window.set_gamma(red, green, blue) # <<<<<<<<<<<<<<
90329046 *
90339047 */
90349048 __Pyx_XDECREF(__pyx_r);
9035 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_gamma); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9049 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_gamma); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
90369050 __Pyx_GOTREF(__pyx_t_3);
90379051 __pyx_t_4 = NULL;
90389052 __pyx_t_5 = 0;
90469060 __pyx_t_5 = 1;
90479061 }
90489062 }
9049 __pyx_t_6 = PyTuple_New(3+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9063 __pyx_t_6 = PyTuple_New(3+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
90509064 __Pyx_GOTREF(__pyx_t_6);
90519065 if (__pyx_t_4) {
90529066 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
90609074 __Pyx_INCREF(__pyx_v_blue);
90619075 __Pyx_GIVEREF(__pyx_v_blue);
90629076 PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_blue);
9063 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9077 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
90649078 __Pyx_GOTREF(__pyx_t_2);
90659079 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
90669080 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
90689082 __pyx_t_2 = 0;
90699083 goto __pyx_L0;
90709084
9071 /* "pygame_sdl2/display.pyx":599
9085 /* "pygame_sdl2/display.pyx":601
90729086 *
90739087 * def set_gamma(red, green=None, blue=None):
90749088 * if main_window: # <<<<<<<<<<<<<<
90779091 */
90789092 }
90799093
9080 /* "pygame_sdl2/display.pyx":601
9094 /* "pygame_sdl2/display.pyx":603
90819095 * if main_window:
90829096 * return main_window.set_gamma(red, green, blue)
90839097 * return False # <<<<<<<<<<<<<<
90899103 __pyx_r = Py_False;
90909104 goto __pyx_L0;
90919105
9092 /* "pygame_sdl2/display.pyx":598
9106 /* "pygame_sdl2/display.pyx":600
90939107 * return True
90949108 *
90959109 * def set_gamma(red, green=None, blue=None): # <<<<<<<<<<<<<<
91119125 return __pyx_r;
91129126 }
91139127
9114 /* "pygame_sdl2/display.pyx":603
9128 /* "pygame_sdl2/display.pyx":605
91159129 * return False
91169130 *
91179131 * def set_gamma_ramp(red, green, blue): # <<<<<<<<<<<<<<
91539167 case 1:
91549168 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_green)) != 0)) kw_args--;
91559169 else {
9156 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9170 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
91579171 }
91589172 case 2:
91599173 if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_blue)) != 0)) kw_args--;
91609174 else {
9161 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9175 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
91629176 }
91639177 }
91649178 if (unlikely(kw_args > 0)) {
9165 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_gamma_ramp") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9179 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_gamma_ramp") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
91669180 }
91679181 } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
91689182 goto __pyx_L5_argtuple_error;
91779191 }
91789192 goto __pyx_L4_argument_unpacking_done;
91799193 __pyx_L5_argtuple_error:;
9180 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9194 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
91819195 __pyx_L3_error:;
91829196 __Pyx_AddTraceback("pygame_sdl2.display.set_gamma_ramp", __pyx_clineno, __pyx_lineno, __pyx_filename);
91839197 __Pyx_RefNannyFinishContext();
92049218 int __pyx_clineno = 0;
92059219 __Pyx_RefNannySetupContext("set_gamma_ramp", 0);
92069220
9207 /* "pygame_sdl2/display.pyx":604
9221 /* "pygame_sdl2/display.pyx":606
92089222 *
92099223 * def set_gamma_ramp(red, green, blue):
92109224 * if main_window: # <<<<<<<<<<<<<<
92119225 * return main_window.set_gamma_ramp(red, green, blue)
92129226 * return False
92139227 */
9214 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9228 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
92159229 if (__pyx_t_1) {
92169230
9217 /* "pygame_sdl2/display.pyx":605
9231 /* "pygame_sdl2/display.pyx":607
92189232 * def set_gamma_ramp(red, green, blue):
92199233 * if main_window:
92209234 * return main_window.set_gamma_ramp(red, green, blue) # <<<<<<<<<<<<<<
92229236 *
92239237 */
92249238 __Pyx_XDECREF(__pyx_r);
9225 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_gamma_ramp); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9239 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_gamma_ramp); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
92269240 __Pyx_GOTREF(__pyx_t_3);
92279241 __pyx_t_4 = NULL;
92289242 __pyx_t_5 = 0;
92369250 __pyx_t_5 = 1;
92379251 }
92389252 }
9239 __pyx_t_6 = PyTuple_New(3+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9253 __pyx_t_6 = PyTuple_New(3+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
92409254 __Pyx_GOTREF(__pyx_t_6);
92419255 if (__pyx_t_4) {
92429256 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
92509264 __Pyx_INCREF(__pyx_v_blue);
92519265 __Pyx_GIVEREF(__pyx_v_blue);
92529266 PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_blue);
9253 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9267 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
92549268 __Pyx_GOTREF(__pyx_t_2);
92559269 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
92569270 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
92589272 __pyx_t_2 = 0;
92599273 goto __pyx_L0;
92609274
9261 /* "pygame_sdl2/display.pyx":604
9275 /* "pygame_sdl2/display.pyx":606
92629276 *
92639277 * def set_gamma_ramp(red, green, blue):
92649278 * if main_window: # <<<<<<<<<<<<<<
92679281 */
92689282 }
92699283
9270 /* "pygame_sdl2/display.pyx":606
9284 /* "pygame_sdl2/display.pyx":608
92719285 * if main_window:
92729286 * return main_window.set_gamma_ramp(red, green, blue)
92739287 * return False # <<<<<<<<<<<<<<
92799293 __pyx_r = Py_False;
92809294 goto __pyx_L0;
92819295
9282 /* "pygame_sdl2/display.pyx":603
9296 /* "pygame_sdl2/display.pyx":605
92839297 * return False
92849298 *
92859299 * def set_gamma_ramp(red, green, blue): # <<<<<<<<<<<<<<
93019315 return __pyx_r;
93029316 }
93039317
9304 /* "pygame_sdl2/display.pyx":608
9318 /* "pygame_sdl2/display.pyx":610
93059319 * return False
93069320 *
93079321 * def set_icon(surface): # <<<<<<<<<<<<<<
93389352 int __pyx_clineno = 0;
93399353 __Pyx_RefNannySetupContext("set_icon", 0);
93409354
9341 /* "pygame_sdl2/display.pyx":611
9355 /* "pygame_sdl2/display.pyx":613
93429356 * global default_icon
93439357 *
93449358 * default_icon = surface.copy() # <<<<<<<<<<<<<<
93459359 *
93469360 * if main_window is not None:
93479361 */
9348 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_surface, __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9362 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_surface, __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93499363 __Pyx_GOTREF(__pyx_t_2);
93509364 __pyx_t_3 = NULL;
93519365 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) {
93589372 }
93599373 }
93609374 if (__pyx_t_3) {
9361 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9375 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93629376 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
93639377 } else {
9364 __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9378 __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93659379 }
93669380 __Pyx_GOTREF(__pyx_t_1);
93679381 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9368 if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_icon, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9382 if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_icon, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93699383 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
93709384
9371 /* "pygame_sdl2/display.pyx":613
9385 /* "pygame_sdl2/display.pyx":615
93729386 * default_icon = surface.copy()
93739387 *
93749388 * if main_window is not None: # <<<<<<<<<<<<<<
93799393 __pyx_t_5 = (__pyx_t_4 != 0);
93809394 if (__pyx_t_5) {
93819395
9382 /* "pygame_sdl2/display.pyx":614
9396 /* "pygame_sdl2/display.pyx":616
93839397 *
93849398 * if main_window is not None:
93859399 * main_window.set_icon(default_icon) # <<<<<<<<<<<<<<
93869400 *
93879401 * def set_caption(title, icontitle = None):
93889402 */
9389 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_icon); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9403 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_icon); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93909404 __Pyx_GOTREF(__pyx_t_2);
9391 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_icon); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9405 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_icon); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93929406 __Pyx_GOTREF(__pyx_t_3);
93939407 __pyx_t_6 = NULL;
93949408 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) {
94019415 }
94029416 }
94039417 if (!__pyx_t_6) {
9404 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9418 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
94059419 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
94069420 __Pyx_GOTREF(__pyx_t_1);
94079421 } else {
9408 __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9422 __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
94099423 __Pyx_GOTREF(__pyx_t_7);
94109424 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL;
94119425 __Pyx_GIVEREF(__pyx_t_3);
94129426 PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_3);
94139427 __pyx_t_3 = 0;
9414 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9428 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
94159429 __Pyx_GOTREF(__pyx_t_1);
94169430 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
94179431 }
94189432 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
94199433 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
94209434
9421 /* "pygame_sdl2/display.pyx":613
9435 /* "pygame_sdl2/display.pyx":615
94229436 * default_icon = surface.copy()
94239437 *
94249438 * if main_window is not None: # <<<<<<<<<<<<<<
94279441 */
94289442 }
94299443
9430 /* "pygame_sdl2/display.pyx":608
9444 /* "pygame_sdl2/display.pyx":610
94319445 * return False
94329446 *
94339447 * def set_icon(surface): # <<<<<<<<<<<<<<
94529466 return __pyx_r;
94539467 }
94549468
9455 /* "pygame_sdl2/display.pyx":616
9469 /* "pygame_sdl2/display.pyx":618
94569470 * main_window.set_icon(default_icon)
94579471 *
94589472 * def set_caption(title, icontitle = None): # <<<<<<<<<<<<<<
94979511 }
94989512 }
94999513 if (unlikely(kw_args > 0)) {
9500 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_caption") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9514 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_caption") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
95019515 }
95029516 } else {
95039517 switch (PyTuple_GET_SIZE(__pyx_args)) {
95129526 }
95139527 goto __pyx_L4_argument_unpacking_done;
95149528 __pyx_L5_argtuple_error:;
9515 __Pyx_RaiseArgtupleInvalid("set_caption", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9529 __Pyx_RaiseArgtupleInvalid("set_caption", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
95169530 __pyx_L3_error:;
95179531 __Pyx_AddTraceback("pygame_sdl2.display.set_caption", __pyx_clineno, __pyx_lineno, __pyx_filename);
95189532 __Pyx_RefNannyFinishContext();
95399553 int __pyx_clineno = 0;
95409554 __Pyx_RefNannySetupContext("set_caption", 0);
95419555
9542 /* "pygame_sdl2/display.pyx":619
9556 /* "pygame_sdl2/display.pyx":621
95439557 * global default_title
95449558 *
95459559 * default_title = title # <<<<<<<<<<<<<<
95469560 *
95479561 * if main_window:
95489562 */
9549 if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_title, __pyx_v_title) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9550
9551 /* "pygame_sdl2/display.pyx":621
9563 if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_title, __pyx_v_title) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9564
9565 /* "pygame_sdl2/display.pyx":623
95529566 * default_title = title
95539567 *
95549568 * if main_window: # <<<<<<<<<<<<<<
95559569 * main_window.set_caption(default_title)
95569570 *
95579571 */
9558 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9572 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95599573 if (__pyx_t_1) {
95609574
9561 /* "pygame_sdl2/display.pyx":622
9575 /* "pygame_sdl2/display.pyx":624
95629576 *
95639577 * if main_window:
95649578 * main_window.set_caption(default_title) # <<<<<<<<<<<<<<
95659579 *
95669580 * def get_caption():
95679581 */
9568 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_caption); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9582 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_caption); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95699583 __Pyx_GOTREF(__pyx_t_3);
9570 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_title); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9584 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_title); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95719585 __Pyx_GOTREF(__pyx_t_4);
95729586 __pyx_t_5 = NULL;
95739587 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
95809594 }
95819595 }
95829596 if (!__pyx_t_5) {
9583 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9597 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95849598 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
95859599 __Pyx_GOTREF(__pyx_t_2);
95869600 } else {
9587 __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9601 __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95889602 __Pyx_GOTREF(__pyx_t_6);
95899603 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL;
95909604 __Pyx_GIVEREF(__pyx_t_4);
95919605 PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4);
95929606 __pyx_t_4 = 0;
9593 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9607 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95949608 __Pyx_GOTREF(__pyx_t_2);
95959609 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
95969610 }
95979611 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
95989612 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
95999613
9600 /* "pygame_sdl2/display.pyx":621
9614 /* "pygame_sdl2/display.pyx":623
96019615 * default_title = title
96029616 *
96039617 * if main_window: # <<<<<<<<<<<<<<
96069620 */
96079621 }
96089622
9609 /* "pygame_sdl2/display.pyx":616
9623 /* "pygame_sdl2/display.pyx":618
96109624 * main_window.set_icon(default_icon)
96119625 *
96129626 * def set_caption(title, icontitle = None): # <<<<<<<<<<<<<<
96319645 return __pyx_r;
96329646 }
96339647
9634 /* "pygame_sdl2/display.pyx":624
9648 /* "pygame_sdl2/display.pyx":626
96359649 * main_window.set_caption(default_title)
96369650 *
96379651 * def get_caption(): # <<<<<<<<<<<<<<
96629676 int __pyx_clineno = 0;
96639677 __Pyx_RefNannySetupContext("get_caption", 0);
96649678
9665 /* "pygame_sdl2/display.pyx":625
9679 /* "pygame_sdl2/display.pyx":627
96669680 *
96679681 * def get_caption():
96689682 * return default_title # <<<<<<<<<<<<<<
96709684 * def get_drawable_size():
96719685 */
96729686 __Pyx_XDECREF(__pyx_r);
9673 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_title); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9687 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_title); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
96749688 __Pyx_GOTREF(__pyx_t_1);
96759689 __pyx_r = __pyx_t_1;
96769690 __pyx_t_1 = 0;
96779691 goto __pyx_L0;
96789692
9679 /* "pygame_sdl2/display.pyx":624
9693 /* "pygame_sdl2/display.pyx":626
96809694 * main_window.set_caption(default_title)
96819695 *
96829696 * def get_caption(): # <<<<<<<<<<<<<<
96959709 return __pyx_r;
96969710 }
96979711
9698 /* "pygame_sdl2/display.pyx":627
9712 /* "pygame_sdl2/display.pyx":629
96999713 * return default_title
97009714 *
97019715 * def get_drawable_size(): # <<<<<<<<<<<<<<
97299743 int __pyx_clineno = 0;
97309744 __Pyx_RefNannySetupContext("get_drawable_size", 0);
97319745
9732 /* "pygame_sdl2/display.pyx":628
9746 /* "pygame_sdl2/display.pyx":630
97339747 *
97349748 * def get_drawable_size():
97359749 * if main_window: # <<<<<<<<<<<<<<
97369750 * return main_window.get_drawable_size()
97379751 * return None
97389752 */
9739 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9753 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
97409754 if (__pyx_t_1) {
97419755
9742 /* "pygame_sdl2/display.pyx":629
9756 /* "pygame_sdl2/display.pyx":631
97439757 * def get_drawable_size():
97449758 * if main_window:
97459759 * return main_window.get_drawable_size() # <<<<<<<<<<<<<<
97479761 *
97489762 */
97499763 __Pyx_XDECREF(__pyx_r);
9750 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_drawable_size); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9764 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_drawable_size); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
97519765 __Pyx_GOTREF(__pyx_t_3);
97529766 __pyx_t_4 = NULL;
97539767 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
97609774 }
97619775 }
97629776 if (__pyx_t_4) {
9763 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9777 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
97649778 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
97659779 } else {
9766 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9780 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
97679781 }
97689782 __Pyx_GOTREF(__pyx_t_2);
97699783 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
97719785 __pyx_t_2 = 0;
97729786 goto __pyx_L0;
97739787
9774 /* "pygame_sdl2/display.pyx":628
9788 /* "pygame_sdl2/display.pyx":630
97759789 *
97769790 * def get_drawable_size():
97779791 * if main_window: # <<<<<<<<<<<<<<
97809794 */
97819795 }
97829796
9783 /* "pygame_sdl2/display.pyx":630
9797 /* "pygame_sdl2/display.pyx":632
97849798 * if main_window:
97859799 * return main_window.get_drawable_size()
97869800 * return None # <<<<<<<<<<<<<<
97929806 __pyx_r = Py_None;
97939807 goto __pyx_L0;
97949808
9795 /* "pygame_sdl2/display.pyx":627
9809 /* "pygame_sdl2/display.pyx":629
97969810 * return default_title
97979811 *
97989812 * def get_drawable_size(): # <<<<<<<<<<<<<<
98139827 return __pyx_r;
98149828 }
98159829
9816 /* "pygame_sdl2/display.pyx":632
9830 /* "pygame_sdl2/display.pyx":634
98179831 * return None
98189832 *
98199833 * def get_num_video_displays(): # <<<<<<<<<<<<<<
98489862 int __pyx_clineno = 0;
98499863 __Pyx_RefNannySetupContext("get_num_video_displays", 0);
98509864
9851 /* "pygame_sdl2/display.pyx":633
9865 /* "pygame_sdl2/display.pyx":635
98529866 *
98539867 * def get_num_video_displays():
98549868 * rv = SDL_GetNumVideoDisplays() # <<<<<<<<<<<<<<
98579871 */
98589872 __pyx_v_rv = SDL_GetNumVideoDisplays();
98599873
9860 /* "pygame_sdl2/display.pyx":634
9874 /* "pygame_sdl2/display.pyx":636
98619875 * def get_num_video_displays():
98629876 * rv = SDL_GetNumVideoDisplays()
98639877 * if rv < 0: # <<<<<<<<<<<<<<
98679881 __pyx_t_1 = ((__pyx_v_rv < 0) != 0);
98689882 if (__pyx_t_1) {
98699883
9870 /* "pygame_sdl2/display.pyx":635
9884 /* "pygame_sdl2/display.pyx":637
98719885 * rv = SDL_GetNumVideoDisplays()
98729886 * if rv < 0:
98739887 * raise error() # <<<<<<<<<<<<<<
98749888 *
98759889 * return rv
98769890 */
9877 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9891 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
98789892 __Pyx_GOTREF(__pyx_t_3);
98799893 __pyx_t_4 = NULL;
98809894 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) {
98879901 }
98889902 }
98899903 if (__pyx_t_4) {
9890 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9904 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
98919905 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
98929906 } else {
9893 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9907 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
98949908 }
98959909 __Pyx_GOTREF(__pyx_t_2);
98969910 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
98979911 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
98989912 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9899 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9900
9901 /* "pygame_sdl2/display.pyx":634
9913 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9914
9915 /* "pygame_sdl2/display.pyx":636
99029916 * def get_num_video_displays():
99039917 * rv = SDL_GetNumVideoDisplays()
99049918 * if rv < 0: # <<<<<<<<<<<<<<
99079921 */
99089922 }
99099923
9910 /* "pygame_sdl2/display.pyx":637
9924 /* "pygame_sdl2/display.pyx":639
99119925 * raise error()
99129926 *
99139927 * return rv # <<<<<<<<<<<<<<
99159929 * def get_display_bounds(index):
99169930 */
99179931 __Pyx_XDECREF(__pyx_r);
9918 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9932 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
99199933 __Pyx_GOTREF(__pyx_t_2);
99209934 __pyx_r = __pyx_t_2;
99219935 __pyx_t_2 = 0;
99229936 goto __pyx_L0;
99239937
9924 /* "pygame_sdl2/display.pyx":632
9938 /* "pygame_sdl2/display.pyx":634
99259939 * return None
99269940 *
99279941 * def get_num_video_displays(): # <<<<<<<<<<<<<<
99429956 return __pyx_r;
99439957 }
99449958
9945 /* "pygame_sdl2/display.pyx":639
9959 /* "pygame_sdl2/display.pyx":641
99469960 * return rv
99479961 *
99489962 * def get_display_bounds(index): # <<<<<<<<<<<<<<
99809994 int __pyx_clineno = 0;
99819995 __Pyx_RefNannySetupContext("get_display_bounds", 0);
99829996
9983 /* "pygame_sdl2/display.pyx":641
9997 /* "pygame_sdl2/display.pyx":643
99849998 * def get_display_bounds(index):
99859999 * cdef SDL_Rect rect
998610000 * rv = SDL_GetDisplayBounds(index, &rect) # <<<<<<<<<<<<<<
998710001 *
998810002 * return (rect.x, rect.y, rect.w, rect.h)
998910003 */
9990 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_index); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10004 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_index); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
999110005 __pyx_v_rv = SDL_GetDisplayBounds(__pyx_t_1, (&__pyx_v_rect));
999210006
9993 /* "pygame_sdl2/display.pyx":643
10007 /* "pygame_sdl2/display.pyx":645
999410008 * rv = SDL_GetDisplayBounds(index, &rect)
999510009 *
999610010 * return (rect.x, rect.y, rect.w, rect.h) # <<<<<<<<<<<<<<
999810012 * def hint(hint, value):
999910013 */
1000010014 __Pyx_XDECREF(__pyx_r);
10001 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rect.x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10015 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rect.x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1000210016 __Pyx_GOTREF(__pyx_t_2);
10003 __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_rect.y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10017 __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_rect.y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1000410018 __Pyx_GOTREF(__pyx_t_3);
10005 __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_rect.w); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10019 __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_rect.w); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1000610020 __Pyx_GOTREF(__pyx_t_4);
10007 __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_rect.h); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10021 __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_rect.h); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1000810022 __Pyx_GOTREF(__pyx_t_5);
10009 __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10023 __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1001010024 __Pyx_GOTREF(__pyx_t_6);
1001110025 __Pyx_GIVEREF(__pyx_t_2);
1001210026 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2);
1002410038 __pyx_t_6 = 0;
1002510039 goto __pyx_L0;
1002610040
10027 /* "pygame_sdl2/display.pyx":639
10041 /* "pygame_sdl2/display.pyx":641
1002810042 * return rv
1002910043 *
1003010044 * def get_display_bounds(index): # <<<<<<<<<<<<<<
1004710061 return __pyx_r;
1004810062 }
1004910063
10050 /* "pygame_sdl2/display.pyx":645
10064 /* "pygame_sdl2/display.pyx":647
1005110065 * return (rect.x, rect.y, rect.w, rect.h)
1005210066 *
1005310067 * def hint(hint, value): # <<<<<<<<<<<<<<
1008710101 case 1:
1008810102 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
1008910103 else {
10090 __Pyx_RaiseArgtupleInvalid("hint", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10104 __Pyx_RaiseArgtupleInvalid("hint", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1009110105 }
1009210106 }
1009310107 if (unlikely(kw_args > 0)) {
10094 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "hint") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10108 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "hint") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1009510109 }
1009610110 } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
1009710111 goto __pyx_L5_argtuple_error;
1010410118 }
1010510119 goto __pyx_L4_argument_unpacking_done;
1010610120 __pyx_L5_argtuple_error:;
10107 __Pyx_RaiseArgtupleInvalid("hint", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10121 __Pyx_RaiseArgtupleInvalid("hint", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1010810122 __pyx_L3_error:;
1010910123 __Pyx_AddTraceback("pygame_sdl2.display.hint", __pyx_clineno, __pyx_lineno, __pyx_filename);
1011010124 __Pyx_RefNannyFinishContext();
1013310147 __Pyx_INCREF(__pyx_v_hint);
1013410148 __Pyx_INCREF(__pyx_v_value);
1013510149
10136 /* "pygame_sdl2/display.pyx":647
10150 /* "pygame_sdl2/display.pyx":649
1013710151 * def hint(hint, value):
1013810152 *
1013910153 * if not isinstance(hint, bytes): # <<<<<<<<<<<<<<
1014410158 __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
1014510159 if (__pyx_t_2) {
1014610160
10147 /* "pygame_sdl2/display.pyx":648
10161 /* "pygame_sdl2/display.pyx":650
1014810162 *
1014910163 * if not isinstance(hint, bytes):
1015010164 * hint = hint.encode("utf-8") # <<<<<<<<<<<<<<
1015110165 *
1015210166 * if not isinstance(value, bytes):
1015310167 */
10154 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_hint, __pyx_n_s_encode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10168 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_hint, __pyx_n_s_encode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1015510169 __Pyx_GOTREF(__pyx_t_3);
10156 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10170 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1015710171 __Pyx_GOTREF(__pyx_t_4);
1015810172 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1015910173 __Pyx_DECREF_SET(__pyx_v_hint, __pyx_t_4);
1016010174 __pyx_t_4 = 0;
1016110175
10162 /* "pygame_sdl2/display.pyx":647
10176 /* "pygame_sdl2/display.pyx":649
1016310177 * def hint(hint, value):
1016410178 *
1016510179 * if not isinstance(hint, bytes): # <<<<<<<<<<<<<<
1016810182 */
1016910183 }
1017010184
10171 /* "pygame_sdl2/display.pyx":650
10185 /* "pygame_sdl2/display.pyx":652
1017210186 * hint = hint.encode("utf-8")
1017310187 *
1017410188 * if not isinstance(value, bytes): # <<<<<<<<<<<<<<
1017910193 __pyx_t_1 = ((!(__pyx_t_2 != 0)) != 0);
1018010194 if (__pyx_t_1) {
1018110195
10182 /* "pygame_sdl2/display.pyx":651
10196 /* "pygame_sdl2/display.pyx":653
1018310197 *
1018410198 * if not isinstance(value, bytes):
1018510199 * value = value.encode("utf-8") # <<<<<<<<<<<<<<
1018610200 *
1018710201 * SDL_SetHint(hint, value)
1018810202 */
10189 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10203 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1019010204 __Pyx_GOTREF(__pyx_t_4);
10191 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10205 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1019210206 __Pyx_GOTREF(__pyx_t_3);
1019310207 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
1019410208 __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_3);
1019510209 __pyx_t_3 = 0;
1019610210
10197 /* "pygame_sdl2/display.pyx":650
10211 /* "pygame_sdl2/display.pyx":652
1019810212 * hint = hint.encode("utf-8")
1019910213 *
1020010214 * if not isinstance(value, bytes): # <<<<<<<<<<<<<<
1020310217 */
1020410218 }
1020510219
10206 /* "pygame_sdl2/display.pyx":653
10220 /* "pygame_sdl2/display.pyx":655
1020710221 * value = value.encode("utf-8")
1020810222 *
1020910223 * SDL_SetHint(hint, value) # <<<<<<<<<<<<<<
1021010224 *
1021110225 * def get_platform():
1021210226 */
10213 __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_v_hint); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10214 __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_value); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10227 __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_v_hint); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10228 __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_value); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1021510229 SDL_SetHint(__pyx_t_5, __pyx_t_6);
1021610230
10217 /* "pygame_sdl2/display.pyx":645
10231 /* "pygame_sdl2/display.pyx":647
1021810232 * return (rect.x, rect.y, rect.w, rect.h)
1021910233 *
1022010234 * def hint(hint, value): # <<<<<<<<<<<<<<
1023810252 return __pyx_r;
1023910253 }
1024010254
10241 /* "pygame_sdl2/display.pyx":655
10255 /* "pygame_sdl2/display.pyx":657
1024210256 * SDL_SetHint(hint, value)
1024310257 *
1024410258 * def get_platform(): # <<<<<<<<<<<<<<
1026910283 int __pyx_clineno = 0;
1027010284 __Pyx_RefNannySetupContext("get_platform", 0);
1027110285
10272 /* "pygame_sdl2/display.pyx":656
10286 /* "pygame_sdl2/display.pyx":658
1027310287 *
1027410288 * def get_platform():
1027510289 * return SDL_GetPlatform() # <<<<<<<<<<<<<<
1027710291 * cdef api SDL_Window *PyWindow_AsWindow(window):
1027810292 */
1027910293 __Pyx_XDECREF(__pyx_r);
10280 __pyx_t_1 = __Pyx_PyBytes_FromString(SDL_GetPlatform()); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10294 __pyx_t_1 = __Pyx_PyBytes_FromString(SDL_GetPlatform()); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1028110295 __Pyx_GOTREF(__pyx_t_1);
1028210296 __pyx_r = __pyx_t_1;
1028310297 __pyx_t_1 = 0;
1028410298 goto __pyx_L0;
1028510299
10286 /* "pygame_sdl2/display.pyx":655
10300 /* "pygame_sdl2/display.pyx":657
1028710301 * SDL_SetHint(hint, value)
1028810302 *
1028910303 * def get_platform(): # <<<<<<<<<<<<<<
1030210316 return __pyx_r;
1030310317 }
1030410318
10305 /* "pygame_sdl2/display.pyx":658
10319 /* "pygame_sdl2/display.pyx":660
1030610320 * return SDL_GetPlatform()
1030710321 *
1030810322 * cdef api SDL_Window *PyWindow_AsWindow(window): # <<<<<<<<<<<<<<
1031810332 __Pyx_RefNannySetupContext("PyWindow_AsWindow", 0);
1031910333 __Pyx_INCREF(__pyx_v_window);
1032010334
10321 /* "pygame_sdl2/display.pyx":665
10335 /* "pygame_sdl2/display.pyx":667
1032210336 * """
1032310337 *
1032410338 * if window is None: # <<<<<<<<<<<<<<
1032910343 __pyx_t_2 = (__pyx_t_1 != 0);
1033010344 if (__pyx_t_2) {
1033110345
10332 /* "pygame_sdl2/display.pyx":666
10346 /* "pygame_sdl2/display.pyx":668
1033310347 *
1033410348 * if window is None:
1033510349 * window = main_window # <<<<<<<<<<<<<<
1033910353 __Pyx_INCREF(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window));
1034010354 __Pyx_DECREF_SET(__pyx_v_window, ((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window));
1034110355
10342 /* "pygame_sdl2/display.pyx":665
10356 /* "pygame_sdl2/display.pyx":667
1034310357 * """
1034410358 *
1034510359 * if window is None: # <<<<<<<<<<<<<<
1034810362 */
1034910363 }
1035010364
10351 /* "pygame_sdl2/display.pyx":668
10365 /* "pygame_sdl2/display.pyx":670
1035210366 * window = main_window
1035310367 *
1035410368 * if window is None: # <<<<<<<<<<<<<<
1035910373 __pyx_t_1 = (__pyx_t_2 != 0);
1036010374 if (__pyx_t_1) {
1036110375
10362 /* "pygame_sdl2/display.pyx":669
10376 /* "pygame_sdl2/display.pyx":671
1036310377 *
1036410378 * if window is None:
1036510379 * return NULL # <<<<<<<<<<<<<<
1036910383 __pyx_r = NULL;
1037010384 goto __pyx_L0;
1037110385
10372 /* "pygame_sdl2/display.pyx":668
10386 /* "pygame_sdl2/display.pyx":670
1037310387 * window = main_window
1037410388 *
1037510389 * if window is None: # <<<<<<<<<<<<<<
1037810392 */
1037910393 }
1038010394
10381 /* "pygame_sdl2/display.pyx":671
10395 /* "pygame_sdl2/display.pyx":673
1038210396 * return NULL
1038310397 *
1038410398 * return (<Window> window).window # <<<<<<<<<<<<<<
1038610400 __pyx_r = ((struct __pyx_obj_11pygame_sdl2_7display_Window *)__pyx_v_window)->window;
1038710401 goto __pyx_L0;
1038810402
10389 /* "pygame_sdl2/display.pyx":658
10403 /* "pygame_sdl2/display.pyx":660
1039010404 * return SDL_GetPlatform()
1039110405 *
1039210406 * cdef api SDL_Window *PyWindow_AsWindow(window): # <<<<<<<<<<<<<<
1067310687 {&__pyx_n_s_rect, __pyx_k_rect, sizeof(__pyx_k_rect), 0, 0, 1, 1},
1067410688 {&__pyx_n_s_rectangles, __pyx_k_rectangles, sizeof(__pyx_k_rectangles), 0, 0, 1, 1},
1067510689 {&__pyx_n_s_red, __pyx_k_red, sizeof(__pyx_k_red), 0, 0, 1, 1},
10690 {&__pyx_n_s_refresh_rate, __pyx_k_refresh_rate, sizeof(__pyx_k_refresh_rate), 0, 0, 1, 1},
1067610691 {&__pyx_n_s_register_init, __pyx_k_register_init, sizeof(__pyx_k_register_init), 0, 0, 1, 1},
1067710692 {&__pyx_n_s_register_quit, __pyx_k_register_quit, sizeof(__pyx_k_register_quit), 0, 0, 1, 1},
1067810693 {&__pyx_n_s_repr, __pyx_k_repr, sizeof(__pyx_k_repr), 0, 0, 1, 1},
1079210807 __Pyx_GOTREF(__pyx_tuple__8);
1079310808 __Pyx_GIVEREF(__pyx_tuple__8);
1079410809
10795 /* "pygame_sdl2/display.pyx":648
10810 /* "pygame_sdl2/display.pyx":650
1079610811 *
1079710812 * if not isinstance(hint, bytes):
1079810813 * hint = hint.encode("utf-8") # <<<<<<<<<<<<<<
1079910814 *
1080010815 * if not isinstance(value, bytes):
1080110816 */
10802 __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_utf_8); if (unlikely(!__pyx_tuple__10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10817 __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_utf_8); if (unlikely(!__pyx_tuple__10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1080310818 __Pyx_GOTREF(__pyx_tuple__10);
1080410819 __Pyx_GIVEREF(__pyx_tuple__10);
1080510820
10806 /* "pygame_sdl2/display.pyx":651
10821 /* "pygame_sdl2/display.pyx":653
1080710822 *
1080810823 * if not isinstance(value, bytes):
1080910824 * value = value.encode("utf-8") # <<<<<<<<<<<<<<
1081010825 *
1081110826 * SDL_SetHint(hint, value)
1081210827 */
10813 __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_utf_8); if (unlikely(!__pyx_tuple__11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10828 __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_utf_8); if (unlikely(!__pyx_tuple__11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1081410829 __Pyx_GOTREF(__pyx_tuple__11);
1081510830 __Pyx_GIVEREF(__pyx_tuple__11);
1081610831
1092510940 __Pyx_GIVEREF(__pyx_tuple__25);
1092610941 __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_init_2, 425, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__26)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1092710942
10928 /* "pygame_sdl2/display.pyx":482
10943 /* "pygame_sdl2/display.pyx":484
1092910944 * self.blit_sw_A = False
1093010945 *
1093110946 * def __repr__(self): # <<<<<<<<<<<<<<
1093210947 * return "<Info({!r})>".format(self.__dict__)
1093310948 *
1093410949 */
10935 __pyx_tuple__27 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__27)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10950 __pyx_tuple__27 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__27)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1093610951 __Pyx_GOTREF(__pyx_tuple__27);
1093710952 __Pyx_GIVEREF(__pyx_tuple__27);
10938 __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_repr, 482, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10939
10940 /* "pygame_sdl2/display.pyx":486
10953 __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_repr, 484, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10954
10955 /* "pygame_sdl2/display.pyx":488
1094110956 *
1094210957 *
1094310958 * def get_wm_info(): # <<<<<<<<<<<<<<
1094410959 * if main_window:
1094510960 * return main_window.get_wm_info()
1094610961 */
10947 __pyx_codeobj__29 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_wm_info, 486, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__29)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10948
10949 /* "pygame_sdl2/display.pyx":493
10962 __pyx_codeobj__29 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_wm_info, 488, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__29)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10963
10964 /* "pygame_sdl2/display.pyx":495
1095010965 *
1095110966 *
1095210967 * def get_num_video_displays(): # <<<<<<<<<<<<<<
1095310968 * """
1095410969 * Returns the number of video displays connected to the system.
1095510970 */
10956 __pyx_tuple__30 = PyTuple_Pack(1, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__30)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10971 __pyx_tuple__30 = PyTuple_Pack(1, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__30)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1095710972 __Pyx_GOTREF(__pyx_tuple__30);
1095810973 __Pyx_GIVEREF(__pyx_tuple__30);
10959 __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__30, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_num_video_displays, 493, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10960
10961 /* "pygame_sdl2/display.pyx":506
10974 __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__30, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_num_video_displays, 495, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10975
10976 /* "pygame_sdl2/display.pyx":508
1096210977 *
1096310978 *
1096410979 * def list_modes(depth=0, flags=0, display=0): # <<<<<<<<<<<<<<
1096510980 * """
1096610981 * Returns a list of possible display modes for the display `display`.
1096710982 */
10968 __pyx_tuple__32 = PyTuple_Pack(8, __pyx_n_s_depth, __pyx_n_s_flags, __pyx_n_s_display, __pyx_n_s_num_modes, __pyx_n_s_i, __pyx_n_s_mode, __pyx_n_s_rv, __pyx_n_s_t); if (unlikely(!__pyx_tuple__32)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10983 __pyx_tuple__32 = PyTuple_Pack(8, __pyx_n_s_depth, __pyx_n_s_flags, __pyx_n_s_display, __pyx_n_s_num_modes, __pyx_n_s_i, __pyx_n_s_mode, __pyx_n_s_rv, __pyx_n_s_t); if (unlikely(!__pyx_tuple__32)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1096910984 __Pyx_GOTREF(__pyx_tuple__32);
1097010985 __Pyx_GIVEREF(__pyx_tuple__32);
10971 __pyx_codeobj__33 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__32, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_list_modes, 506, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10972
10973 /* "pygame_sdl2/display.pyx":531
10986 __pyx_codeobj__33 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__32, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_list_modes, 508, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10987
10988 /* "pygame_sdl2/display.pyx":533
1097410989 *
1097510990 *
1097610991 * def mode_ok(size, flags=0, depth=0): # <<<<<<<<<<<<<<
1097710992 * """
1097810993 * Returns true if size is in the result of list_modes().
1097910994 */
10980 __pyx_tuple__34 = PyTuple_Pack(3, __pyx_n_s_size, __pyx_n_s_flags, __pyx_n_s_depth); if (unlikely(!__pyx_tuple__34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10995 __pyx_tuple__34 = PyTuple_Pack(3, __pyx_n_s_size, __pyx_n_s_flags, __pyx_n_s_depth); if (unlikely(!__pyx_tuple__34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1098110996 __Pyx_GOTREF(__pyx_tuple__34);
1098210997 __Pyx_GIVEREF(__pyx_tuple__34);
10983 __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__34, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_mode_ok, 531, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10984
10985 /* "pygame_sdl2/display.pyx":538
10998 __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__34, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_mode_ok, 533, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10999
11000 /* "pygame_sdl2/display.pyx":540
1098611001 * return tuple(size) in list_modes()
1098711002 *
1098811003 * def gl_reset_attributes(): # <<<<<<<<<<<<<<
1098911004 * SDL_GL_ResetAttributes()
1099011005 *
1099111006 */
10992 __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_reset_attributes, 538, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10993
10994 /* "pygame_sdl2/display.pyx":541
11007 __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_reset_attributes, 540, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11008
11009 /* "pygame_sdl2/display.pyx":543
1099511010 * SDL_GL_ResetAttributes()
1099611011 *
1099711012 * def gl_set_attribute(flag, value): # <<<<<<<<<<<<<<
1099811013 *
1099911014 * if flag == GL_SWAP_CONTROL:
1100011015 */
11001 __pyx_tuple__37 = PyTuple_Pack(3, __pyx_n_s_flag, __pyx_n_s_value, __pyx_n_s_default_swap_control); if (unlikely(!__pyx_tuple__37)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11016 __pyx_tuple__37 = PyTuple_Pack(3, __pyx_n_s_flag, __pyx_n_s_value, __pyx_n_s_default_swap_control); if (unlikely(!__pyx_tuple__37)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1100211017 __Pyx_GOTREF(__pyx_tuple__37);
1100311018 __Pyx_GIVEREF(__pyx_tuple__37);
11004 __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_set_attribute, 541, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11005
11006 /* "pygame_sdl2/display.pyx":559
11019 __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_set_attribute, 543, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11020
11021 /* "pygame_sdl2/display.pyx":561
1100711022 * raise error()
1100811023 *
1100911024 * def gl_get_attribute(flag): # <<<<<<<<<<<<<<
1101011025 * cdef int rv
1101111026 *
1101211027 */
11013 __pyx_tuple__39 = PyTuple_Pack(2, __pyx_n_s_flag, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__39)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11028 __pyx_tuple__39 = PyTuple_Pack(2, __pyx_n_s_flag, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__39)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1101411029 __Pyx_GOTREF(__pyx_tuple__39);
1101511030 __Pyx_GIVEREF(__pyx_tuple__39);
11016 __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_get_attribute, 559, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11017
11018 /* "pygame_sdl2/display.pyx":570
11031 __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_get_attribute, 561, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11032
11033 /* "pygame_sdl2/display.pyx":572
1101911034 * return rv
1102011035 *
1102111036 * def gl_load_library(path): # <<<<<<<<<<<<<<
1102211037 * if path is None:
1102311038 * if SDL_GL_LoadLibrary(NULL):
1102411039 */
11025 __pyx_tuple__41 = PyTuple_Pack(1, __pyx_n_s_path); if (unlikely(!__pyx_tuple__41)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11040 __pyx_tuple__41 = PyTuple_Pack(1, __pyx_n_s_path); if (unlikely(!__pyx_tuple__41)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1102611041 __Pyx_GOTREF(__pyx_tuple__41);
1102711042 __Pyx_GIVEREF(__pyx_tuple__41);
11028 __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_load_library, 570, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11029
11030 /* "pygame_sdl2/display.pyx":578
11043 __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_load_library, 572, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11044
11045 /* "pygame_sdl2/display.pyx":580
1103111046 * raise error()
1103211047 *
1103311048 * def gl_unload_library(): # <<<<<<<<<<<<<<
1103411049 * SDL_GL_UnloadLibrary()
1103511050 *
1103611051 */
11037 __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_unload_library, 578, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__43)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11038
11039 /* "pygame_sdl2/display.pyx":581
11052 __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_unload_library, 580, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__43)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11053
11054 /* "pygame_sdl2/display.pyx":583
1104011055 * SDL_GL_UnloadLibrary()
1104111056 *
1104211057 * def get_active(): # <<<<<<<<<<<<<<
1104311058 * if main_window:
1104411059 * return main_window.get_active()
1104511060 */
11046 __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_active, 581, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__44)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11047
11048 /* "pygame_sdl2/display.pyx":586
11061 __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_active, 583, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__44)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11062
11063 /* "pygame_sdl2/display.pyx":588
1104911064 * return False
1105011065 *
1105111066 * def iconify(): # <<<<<<<<<<<<<<
1105211067 * if main_window:
1105311068 * return main_window.iconify()
1105411069 */
11055 __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_iconify, 586, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__45)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11056
11057 /* "pygame_sdl2/display.pyx":592
11070 __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_iconify, 588, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__45)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11071
11072 /* "pygame_sdl2/display.pyx":594
1105811073 * return False
1105911074 *
1106011075 * def toggle_fullscreen(): # <<<<<<<<<<<<<<
1106111076 * if main_window:
1106211077 * return main_window.toggle_fullscreen()
1106311078 */
11064 __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_toggle_fullscreen, 592, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11065
11066 /* "pygame_sdl2/display.pyx":598
11079 __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_toggle_fullscreen, 594, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11080
11081 /* "pygame_sdl2/display.pyx":600
1106711082 * return True
1106811083 *
1106911084 * def set_gamma(red, green=None, blue=None): # <<<<<<<<<<<<<<
1107011085 * if main_window:
1107111086 * return main_window.set_gamma(red, green, blue)
1107211087 */
11073 __pyx_tuple__47 = PyTuple_Pack(3, __pyx_n_s_red, __pyx_n_s_green, __pyx_n_s_blue); if (unlikely(!__pyx_tuple__47)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11088 __pyx_tuple__47 = PyTuple_Pack(3, __pyx_n_s_red, __pyx_n_s_green, __pyx_n_s_blue); if (unlikely(!__pyx_tuple__47)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1107411089 __Pyx_GOTREF(__pyx_tuple__47);
1107511090 __Pyx_GIVEREF(__pyx_tuple__47);
11076 __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_gamma, 598, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11077
11078 /* "pygame_sdl2/display.pyx":603
11091 __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_gamma, 600, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11092
11093 /* "pygame_sdl2/display.pyx":605
1107911094 * return False
1108011095 *
1108111096 * def set_gamma_ramp(red, green, blue): # <<<<<<<<<<<<<<
1108211097 * if main_window:
1108311098 * return main_window.set_gamma_ramp(red, green, blue)
1108411099 */
11085 __pyx_tuple__49 = PyTuple_Pack(3, __pyx_n_s_red, __pyx_n_s_green, __pyx_n_s_blue); if (unlikely(!__pyx_tuple__49)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11100 __pyx_tuple__49 = PyTuple_Pack(3, __pyx_n_s_red, __pyx_n_s_green, __pyx_n_s_blue); if (unlikely(!__pyx_tuple__49)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1108611101 __Pyx_GOTREF(__pyx_tuple__49);
1108711102 __Pyx_GIVEREF(__pyx_tuple__49);
11088 __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_gamma_ramp, 603, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11089
11090 /* "pygame_sdl2/display.pyx":608
11103 __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_gamma_ramp, 605, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11104
11105 /* "pygame_sdl2/display.pyx":610
1109111106 * return False
1109211107 *
1109311108 * def set_icon(surface): # <<<<<<<<<<<<<<
1109411109 * global default_icon
1109511110 *
1109611111 */
11097 __pyx_tuple__51 = PyTuple_Pack(1, __pyx_n_s_surface); if (unlikely(!__pyx_tuple__51)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11112 __pyx_tuple__51 = PyTuple_Pack(1, __pyx_n_s_surface); if (unlikely(!__pyx_tuple__51)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1109811113 __Pyx_GOTREF(__pyx_tuple__51);
1109911114 __Pyx_GIVEREF(__pyx_tuple__51);
11100 __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_icon, 608, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11101
11102 /* "pygame_sdl2/display.pyx":616
11115 __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_icon, 610, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11116
11117 /* "pygame_sdl2/display.pyx":618
1110311118 * main_window.set_icon(default_icon)
1110411119 *
1110511120 * def set_caption(title, icontitle = None): # <<<<<<<<<<<<<<
1110611121 * global default_title
1110711122 *
1110811123 */
11109 __pyx_tuple__53 = PyTuple_Pack(2, __pyx_n_s_title, __pyx_n_s_icontitle); if (unlikely(!__pyx_tuple__53)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11124 __pyx_tuple__53 = PyTuple_Pack(2, __pyx_n_s_title, __pyx_n_s_icontitle); if (unlikely(!__pyx_tuple__53)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1111011125 __Pyx_GOTREF(__pyx_tuple__53);
1111111126 __Pyx_GIVEREF(__pyx_tuple__53);
11112 __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__53, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_caption, 616, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__54)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11113
11114 /* "pygame_sdl2/display.pyx":624
11127 __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__53, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_caption, 618, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__54)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11128
11129 /* "pygame_sdl2/display.pyx":626
1111511130 * main_window.set_caption(default_title)
1111611131 *
1111711132 * def get_caption(): # <<<<<<<<<<<<<<
1111811133 * return default_title
1111911134 *
1112011135 */
11121 __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_caption, 624, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11122
11123 /* "pygame_sdl2/display.pyx":627
11136 __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_caption, 626, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11137
11138 /* "pygame_sdl2/display.pyx":629
1112411139 * return default_title
1112511140 *
1112611141 * def get_drawable_size(): # <<<<<<<<<<<<<<
1112711142 * if main_window:
1112811143 * return main_window.get_drawable_size()
1112911144 */
11130 __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_drawable_size, 627, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11131
11132 /* "pygame_sdl2/display.pyx":632
11145 __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_drawable_size, 629, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11146
11147 /* "pygame_sdl2/display.pyx":634
1113311148 * return None
1113411149 *
1113511150 * def get_num_video_displays(): # <<<<<<<<<<<<<<
1113611151 * rv = SDL_GetNumVideoDisplays()
1113711152 * if rv < 0:
1113811153 */
11139 __pyx_tuple__57 = PyTuple_Pack(1, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__57)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11154 __pyx_tuple__57 = PyTuple_Pack(1, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__57)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1114011155 __Pyx_GOTREF(__pyx_tuple__57);
1114111156 __Pyx_GIVEREF(__pyx_tuple__57);
11142 __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_num_video_displays, 632, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__58)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11143
11144 /* "pygame_sdl2/display.pyx":639
11157 __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_num_video_displays, 634, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__58)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11158
11159 /* "pygame_sdl2/display.pyx":641
1114511160 * return rv
1114611161 *
1114711162 * def get_display_bounds(index): # <<<<<<<<<<<<<<
1114811163 * cdef SDL_Rect rect
1114911164 * rv = SDL_GetDisplayBounds(index, &rect)
1115011165 */
11151 __pyx_tuple__59 = PyTuple_Pack(3, __pyx_n_s_index, __pyx_n_s_rect, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__59)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11166 __pyx_tuple__59 = PyTuple_Pack(3, __pyx_n_s_index, __pyx_n_s_rect, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__59)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1115211167 __Pyx_GOTREF(__pyx_tuple__59);
1115311168 __Pyx_GIVEREF(__pyx_tuple__59);
11154 __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__59, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_display_bounds, 639, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__60)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11155
11156 /* "pygame_sdl2/display.pyx":645
11169 __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__59, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_display_bounds, 641, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__60)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11170
11171 /* "pygame_sdl2/display.pyx":647
1115711172 * return (rect.x, rect.y, rect.w, rect.h)
1115811173 *
1115911174 * def hint(hint, value): # <<<<<<<<<<<<<<
1116011175 *
1116111176 * if not isinstance(hint, bytes):
1116211177 */
11163 __pyx_tuple__61 = PyTuple_Pack(2, __pyx_n_s_hint, __pyx_n_s_value); if (unlikely(!__pyx_tuple__61)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11178 __pyx_tuple__61 = PyTuple_Pack(2, __pyx_n_s_hint, __pyx_n_s_value); if (unlikely(!__pyx_tuple__61)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1116411179 __Pyx_GOTREF(__pyx_tuple__61);
1116511180 __Pyx_GIVEREF(__pyx_tuple__61);
11166 __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__61, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_hint, 645, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__62)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11167
11168 /* "pygame_sdl2/display.pyx":655
11181 __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__61, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_hint, 647, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__62)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11182
11183 /* "pygame_sdl2/display.pyx":657
1116911184 * SDL_SetHint(hint, value)
1117011185 *
1117111186 * def get_platform(): # <<<<<<<<<<<<<<
1117211187 * return SDL_GetPlatform()
1117311188 *
1117411189 */
11175 __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_platform, 655, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11190 __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_platform, 657, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1117611191 __Pyx_RefNannyFinishContext();
1117711192 return 0;
1117811193 __pyx_L1_error:;
1173111746 if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_init_2, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1173211747 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
1173311748
11734 /* "pygame_sdl2/display.pyx":482
11749 /* "pygame_sdl2/display.pyx":484
1173511750 * self.blit_sw_A = False
1173611751 *
1173711752 * def __repr__(self): # <<<<<<<<<<<<<<
1173811753 * return "<Info({!r})>".format(self.__dict__)
1173911754 *
1174011755 */
11741 __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_4Info_3__repr__, 0, __pyx_n_s_Info___repr, NULL, __pyx_n_s_pygame_sdl2_display, __pyx_d, ((PyObject *)__pyx_codeobj__28)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11756 __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_4Info_3__repr__, 0, __pyx_n_s_Info___repr, NULL, __pyx_n_s_pygame_sdl2_display, __pyx_d, ((PyObject *)__pyx_codeobj__28)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1174211757 __Pyx_GOTREF(__pyx_t_5);
11743 if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_repr, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11758 if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_repr, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1174411759 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
1174511760
1174611761 /* "pygame_sdl2/display.pyx":423
1175811773 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
1175911774 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1176011775
11761 /* "pygame_sdl2/display.pyx":486
11776 /* "pygame_sdl2/display.pyx":488
1176211777 *
1176311778 *
1176411779 * def get_wm_info(): # <<<<<<<<<<<<<<
1176511780 * if main_window:
1176611781 * return main_window.get_wm_info()
1176711782 */
11768 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_21get_wm_info, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11783 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_21get_wm_info, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1176911784 __Pyx_GOTREF(__pyx_t_3);
11770 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_wm_info, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11785 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_wm_info, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1177111786 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1177211787
11773 /* "pygame_sdl2/display.pyx":493
11788 /* "pygame_sdl2/display.pyx":495
1177411789 *
1177511790 *
1177611791 * def get_num_video_displays(): # <<<<<<<<<<<<<<
1177711792 * """
1177811793 * Returns the number of video displays connected to the system.
1177911794 */
11780 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_23get_num_video_displays, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11795 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_23get_num_video_displays, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1178111796 __Pyx_GOTREF(__pyx_t_3);
11782 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_num_video_displays, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11797 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_num_video_displays, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1178311798 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1178411799
11785 /* "pygame_sdl2/display.pyx":506
11800 /* "pygame_sdl2/display.pyx":508
1178611801 *
1178711802 *
1178811803 * def list_modes(depth=0, flags=0, display=0): # <<<<<<<<<<<<<<
1178911804 * """
1179011805 * Returns a list of possible display modes for the display `display`.
1179111806 */
11792 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_25list_modes, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11807 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_25list_modes, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1179311808 __Pyx_GOTREF(__pyx_t_3);
11794 if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_modes, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11809 if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_modes, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1179511810 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1179611811
11797 /* "pygame_sdl2/display.pyx":531
11812 /* "pygame_sdl2/display.pyx":533
1179811813 *
1179911814 *
1180011815 * def mode_ok(size, flags=0, depth=0): # <<<<<<<<<<<<<<
1180111816 * """
1180211817 * Returns true if size is in the result of list_modes().
1180311818 */
11804 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_27mode_ok, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11819 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_27mode_ok, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1180511820 __Pyx_GOTREF(__pyx_t_3);
11806 if (PyDict_SetItem(__pyx_d, __pyx_n_s_mode_ok, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11821 if (PyDict_SetItem(__pyx_d, __pyx_n_s_mode_ok, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1180711822 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1180811823
11809 /* "pygame_sdl2/display.pyx":538
11824 /* "pygame_sdl2/display.pyx":540
1181011825 * return tuple(size) in list_modes()
1181111826 *
1181211827 * def gl_reset_attributes(): # <<<<<<<<<<<<<<
1181311828 * SDL_GL_ResetAttributes()
1181411829 *
1181511830 */
11816 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_29gl_reset_attributes, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11831 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_29gl_reset_attributes, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1181711832 __Pyx_GOTREF(__pyx_t_3);
11818 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_reset_attributes, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11833 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_reset_attributes, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1181911834 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1182011835
11821 /* "pygame_sdl2/display.pyx":541
11836 /* "pygame_sdl2/display.pyx":543
1182211837 * SDL_GL_ResetAttributes()
1182311838 *
1182411839 * def gl_set_attribute(flag, value): # <<<<<<<<<<<<<<
1182511840 *
1182611841 * if flag == GL_SWAP_CONTROL:
1182711842 */
11828 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_31gl_set_attribute, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11843 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_31gl_set_attribute, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1182911844 __Pyx_GOTREF(__pyx_t_3);
11830 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_set_attribute, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11845 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_set_attribute, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1183111846 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1183211847
11833 /* "pygame_sdl2/display.pyx":559
11848 /* "pygame_sdl2/display.pyx":561
1183411849 * raise error()
1183511850 *
1183611851 * def gl_get_attribute(flag): # <<<<<<<<<<<<<<
1183711852 * cdef int rv
1183811853 *
1183911854 */
11840 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_33gl_get_attribute, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11855 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_33gl_get_attribute, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1184111856 __Pyx_GOTREF(__pyx_t_3);
11842 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_get_attribute, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11857 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_get_attribute, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1184311858 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1184411859
11845 /* "pygame_sdl2/display.pyx":570
11860 /* "pygame_sdl2/display.pyx":572
1184611861 * return rv
1184711862 *
1184811863 * def gl_load_library(path): # <<<<<<<<<<<<<<
1184911864 * if path is None:
1185011865 * if SDL_GL_LoadLibrary(NULL):
1185111866 */
11852 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_35gl_load_library, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11867 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_35gl_load_library, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1185311868 __Pyx_GOTREF(__pyx_t_3);
11854 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_load_library, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11869 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_load_library, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1185511870 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1185611871
11857 /* "pygame_sdl2/display.pyx":578
11872 /* "pygame_sdl2/display.pyx":580
1185811873 * raise error()
1185911874 *
1186011875 * def gl_unload_library(): # <<<<<<<<<<<<<<
1186111876 * SDL_GL_UnloadLibrary()
1186211877 *
1186311878 */
11864 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_37gl_unload_library, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11879 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_37gl_unload_library, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1186511880 __Pyx_GOTREF(__pyx_t_3);
11866 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_unload_library, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11881 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_unload_library, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1186711882 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1186811883
11869 /* "pygame_sdl2/display.pyx":581
11884 /* "pygame_sdl2/display.pyx":583
1187011885 * SDL_GL_UnloadLibrary()
1187111886 *
1187211887 * def get_active(): # <<<<<<<<<<<<<<
1187311888 * if main_window:
1187411889 * return main_window.get_active()
1187511890 */
11876 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_39get_active, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11891 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_39get_active, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1187711892 __Pyx_GOTREF(__pyx_t_3);
11878 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_active, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11893 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_active, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1187911894 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1188011895
11881 /* "pygame_sdl2/display.pyx":586
11896 /* "pygame_sdl2/display.pyx":588
1188211897 * return False
1188311898 *
1188411899 * def iconify(): # <<<<<<<<<<<<<<
1188511900 * if main_window:
1188611901 * return main_window.iconify()
1188711902 */
11888 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_41iconify, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11903 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_41iconify, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1188911904 __Pyx_GOTREF(__pyx_t_3);
11890 if (PyDict_SetItem(__pyx_d, __pyx_n_s_iconify, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11905 if (PyDict_SetItem(__pyx_d, __pyx_n_s_iconify, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1189111906 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1189211907
11893 /* "pygame_sdl2/display.pyx":592
11908 /* "pygame_sdl2/display.pyx":594
1189411909 * return False
1189511910 *
1189611911 * def toggle_fullscreen(): # <<<<<<<<<<<<<<
1189711912 * if main_window:
1189811913 * return main_window.toggle_fullscreen()
1189911914 */
11900 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_43toggle_fullscreen, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11915 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_43toggle_fullscreen, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1190111916 __Pyx_GOTREF(__pyx_t_3);
11902 if (PyDict_SetItem(__pyx_d, __pyx_n_s_toggle_fullscreen, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11917 if (PyDict_SetItem(__pyx_d, __pyx_n_s_toggle_fullscreen, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1190311918 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1190411919
11905 /* "pygame_sdl2/display.pyx":598
11920 /* "pygame_sdl2/display.pyx":600
1190611921 * return True
1190711922 *
1190811923 * def set_gamma(red, green=None, blue=None): # <<<<<<<<<<<<<<
1190911924 * if main_window:
1191011925 * return main_window.set_gamma(red, green, blue)
1191111926 */
11912 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_45set_gamma, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11927 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_45set_gamma, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1191311928 __Pyx_GOTREF(__pyx_t_3);
11914 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_gamma, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11929 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_gamma, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1191511930 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1191611931
11917 /* "pygame_sdl2/display.pyx":603
11932 /* "pygame_sdl2/display.pyx":605
1191811933 * return False
1191911934 *
1192011935 * def set_gamma_ramp(red, green, blue): # <<<<<<<<<<<<<<
1192111936 * if main_window:
1192211937 * return main_window.set_gamma_ramp(red, green, blue)
1192311938 */
11924 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_47set_gamma_ramp, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11939 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_47set_gamma_ramp, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1192511940 __Pyx_GOTREF(__pyx_t_3);
11926 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_gamma_ramp, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11941 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_gamma_ramp, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1192711942 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1192811943
11929 /* "pygame_sdl2/display.pyx":608
11944 /* "pygame_sdl2/display.pyx":610
1193011945 * return False
1193111946 *
1193211947 * def set_icon(surface): # <<<<<<<<<<<<<<
1193311948 * global default_icon
1193411949 *
1193511950 */
11936 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_49set_icon, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11951 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_49set_icon, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1193711952 __Pyx_GOTREF(__pyx_t_3);
11938 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_icon, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11953 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_icon, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1193911954 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1194011955
11941 /* "pygame_sdl2/display.pyx":616
11956 /* "pygame_sdl2/display.pyx":618
1194211957 * main_window.set_icon(default_icon)
1194311958 *
1194411959 * def set_caption(title, icontitle = None): # <<<<<<<<<<<<<<
1194511960 * global default_title
1194611961 *
1194711962 */
11948 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_51set_caption, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11963 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_51set_caption, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1194911964 __Pyx_GOTREF(__pyx_t_3);
11950 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_caption, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11965 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_caption, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1195111966 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1195211967
11953 /* "pygame_sdl2/display.pyx":624
11968 /* "pygame_sdl2/display.pyx":626
1195411969 * main_window.set_caption(default_title)
1195511970 *
1195611971 * def get_caption(): # <<<<<<<<<<<<<<
1195711972 * return default_title
1195811973 *
1195911974 */
11960 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_53get_caption, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11975 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_53get_caption, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1196111976 __Pyx_GOTREF(__pyx_t_3);
11962 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_caption, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11977 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_caption, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1196311978 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1196411979
11965 /* "pygame_sdl2/display.pyx":627
11980 /* "pygame_sdl2/display.pyx":629
1196611981 * return default_title
1196711982 *
1196811983 * def get_drawable_size(): # <<<<<<<<<<<<<<
1196911984 * if main_window:
1197011985 * return main_window.get_drawable_size()
1197111986 */
11972 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_55get_drawable_size, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11987 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_55get_drawable_size, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1197311988 __Pyx_GOTREF(__pyx_t_3);
11974 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_drawable_size, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11989 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_drawable_size, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1197511990 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1197611991
11977 /* "pygame_sdl2/display.pyx":632
11992 /* "pygame_sdl2/display.pyx":634
1197811993 * return None
1197911994 *
1198011995 * def get_num_video_displays(): # <<<<<<<<<<<<<<
1198111996 * rv = SDL_GetNumVideoDisplays()
1198211997 * if rv < 0:
1198311998 */
11984 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_57get_num_video_displays, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11999 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_57get_num_video_displays, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1198512000 __Pyx_GOTREF(__pyx_t_3);
11986 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_num_video_displays, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12001 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_num_video_displays, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1198712002 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1198812003
11989 /* "pygame_sdl2/display.pyx":639
12004 /* "pygame_sdl2/display.pyx":641
1199012005 * return rv
1199112006 *
1199212007 * def get_display_bounds(index): # <<<<<<<<<<<<<<
1199312008 * cdef SDL_Rect rect
1199412009 * rv = SDL_GetDisplayBounds(index, &rect)
1199512010 */
11996 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_59get_display_bounds, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12011 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_59get_display_bounds, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1199712012 __Pyx_GOTREF(__pyx_t_3);
11998 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_display_bounds, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12013 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_display_bounds, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1199912014 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1200012015
12001 /* "pygame_sdl2/display.pyx":645
12016 /* "pygame_sdl2/display.pyx":647
1200212017 * return (rect.x, rect.y, rect.w, rect.h)
1200312018 *
1200412019 * def hint(hint, value): # <<<<<<<<<<<<<<
1200512020 *
1200612021 * if not isinstance(hint, bytes):
1200712022 */
12008 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_61hint, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12023 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_61hint, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1200912024 __Pyx_GOTREF(__pyx_t_3);
12010 if (PyDict_SetItem(__pyx_d, __pyx_n_s_hint, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12025 if (PyDict_SetItem(__pyx_d, __pyx_n_s_hint, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1201112026 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1201212027
12013 /* "pygame_sdl2/display.pyx":655
12028 /* "pygame_sdl2/display.pyx":657
1201412029 * SDL_SetHint(hint, value)
1201512030 *
1201612031 * def get_platform(): # <<<<<<<<<<<<<<
1201712032 * return SDL_GetPlatform()
1201812033 *
1201912034 */
12020 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_63get_platform, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12035 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_63get_platform, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1202112036 __Pyx_GOTREF(__pyx_t_3);
12022 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_platform, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12037 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_platform, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1202312038 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1202412039
1202512040 /* "pygame_sdl2/display.pyx":1
1390313918 const digit* digits = ((PyLongObject*)x)->ob_digit;
1390413919 switch (Py_SIZE(x)) {
1390513920 case 0: return (uint32_t) 0;
13906 case -1: __PYX_VERIFY_RETURN_INT(uint32_t, sdigit, -(sdigit) digits[0])
13921 case -1: __PYX_VERIFY_RETURN_INT(uint32_t, sdigit, (sdigit) (-(sdigit)digits[0]))
1390713922 case 1: __PYX_VERIFY_RETURN_INT(uint32_t, digit, +digits[0])
1390813923 case -2:
1390913924 if (8 * sizeof(uint32_t) - 1 > 1 * PyLong_SHIFT) {
1413914154 const digit* digits = ((PyLongObject*)x)->ob_digit;
1414014155 switch (Py_SIZE(x)) {
1414114156 case 0: return (int) 0;
14142 case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, -(sdigit) digits[0])
14157 case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
1414314158 case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0])
1414414159 case -2:
1414514160 if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
1434914364 const digit* digits = ((PyLongObject*)x)->ob_digit;
1435014365 switch (Py_SIZE(x)) {
1435114366 case 0: return (long) 0;
14352 case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, -(sdigit) digits[0])
14367 case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
1435314368 case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0])
1435414369 case -2:
1435514370 if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
1453314548 const digit* digits = ((PyLongObject*)x)->ob_digit;
1453414549 switch (Py_SIZE(x)) {
1453514550 case 0: return (uint16_t) 0;
14536 case -1: __PYX_VERIFY_RETURN_INT(uint16_t, sdigit, -(sdigit) digits[0])
14551 case -1: __PYX_VERIFY_RETURN_INT(uint16_t, sdigit, (sdigit) (-(sdigit)digits[0]))
1453714552 case 1: __PYX_VERIFY_RETURN_INT(uint16_t, digit, +digits[0])
1453814553 case -2:
1453914554 if (8 * sizeof(uint16_t) - 1 > 1 * PyLong_SHIFT) {
1474314758 const digit* digits = ((PyLongObject*)x)->ob_digit;
1474414759 switch (Py_SIZE(x)) {
1474514760 case 0: return (SDL_GLattr) 0;
14746 case -1: __PYX_VERIFY_RETURN_INT(SDL_GLattr, sdigit, -(sdigit) digits[0])
14761 case -1: __PYX_VERIFY_RETURN_INT(SDL_GLattr, sdigit, (sdigit) (-(sdigit)digits[0]))
1474714762 case 1: __PYX_VERIFY_RETURN_INT(SDL_GLattr, digit, +digits[0])
1474814763 case -2:
1474914764 if (8 * sizeof(SDL_GLattr) - 1 > 1 * PyLong_SHIFT) {
10031003 static char __pyx_k_close_window[] = "close_window";
10041004 static char __pyx_k_default_icon[] = "default_icon";
10051005 static char __pyx_k_get_platform[] = "get_platform";
1006 static char __pyx_k_refresh_rate[] = "refresh_rate";
10061007 static char __pyx_k_default_title[] = "default_title";
10071008 static char __pyx_k_pygame_window[] = "pygame window";
10081009 static char __pyx_k_register_init[] = "register_init";
11361137 static PyObject *__pyx_n_s_rect;
11371138 static PyObject *__pyx_n_s_rectangles;
11381139 static PyObject *__pyx_n_s_red;
1140 static PyObject *__pyx_n_s_refresh_rate;
11391141 static PyObject *__pyx_n_s_register_init;
11401142 static PyObject *__pyx_n_s_register_quit;
11411143 static PyObject *__pyx_n_s_repr;
69256927 * self.current_w = dm.w
69266928 * self.current_h = dm.h # <<<<<<<<<<<<<<
69276929 *
6928 * # The rest of these are just guesses.
6930 * self.refresh_rate = dm.refresh_rate
69296931 */
69306932 __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_dm.h); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
69316933 __Pyx_GOTREF(__pyx_t_6);
69346936 }
69356937 __pyx_L5:;
69366938
6937 /* "pygame_sdl2/display.pyx":470
6939 /* "pygame_sdl2/display.pyx":469
6940 * self.current_h = dm.h
6941 *
6942 * self.refresh_rate = dm.refresh_rate # <<<<<<<<<<<<<<
6943 *
6944 * # The rest of these are just guesses.
6945 */
6946 __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_dm.refresh_rate); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6947 __Pyx_GOTREF(__pyx_t_6);
6948 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_refresh_rate, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6949 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
6950
6951 /* "pygame_sdl2/display.pyx":472
69386952 *
69396953 * # The rest of these are just guesses.
69406954 * self.hw = False # <<<<<<<<<<<<<<
69416955 * self.wm = True
69426956 * self.video_mem = 256 * 1024 * 1024
69436957 */
6944 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_hw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6945
6946 /* "pygame_sdl2/display.pyx":471
6958 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_hw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6959
6960 /* "pygame_sdl2/display.pyx":473
69476961 * # The rest of these are just guesses.
69486962 * self.hw = False
69496963 * self.wm = True # <<<<<<<<<<<<<<
69506964 * self.video_mem = 256 * 1024 * 1024
69516965 *
69526966 */
6953 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_wm, Py_True) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6954
6955 /* "pygame_sdl2/display.pyx":472
6967 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_wm, Py_True) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6968
6969 /* "pygame_sdl2/display.pyx":474
69566970 * self.hw = False
69576971 * self.wm = True
69586972 * self.video_mem = 256 * 1024 * 1024 # <<<<<<<<<<<<<<
69596973 *
69606974 * self.blit_hw = False
69616975 */
6962 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_video_mem, __pyx_int_268435456) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6963
6964 /* "pygame_sdl2/display.pyx":474
6976 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_video_mem, __pyx_int_268435456) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6977
6978 /* "pygame_sdl2/display.pyx":476
69656979 * self.video_mem = 256 * 1024 * 1024
69666980 *
69676981 * self.blit_hw = False # <<<<<<<<<<<<<<
69686982 * self.blit_hw_CC = False
69696983 * self.blit_hw_A = False
69706984 */
6971 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6972
6973 /* "pygame_sdl2/display.pyx":475
6985 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6986
6987 /* "pygame_sdl2/display.pyx":477
69746988 *
69756989 * self.blit_hw = False
69766990 * self.blit_hw_CC = False # <<<<<<<<<<<<<<
69776991 * self.blit_hw_A = False
69786992 *
69796993 */
6980 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw_CC, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6981
6982 /* "pygame_sdl2/display.pyx":476
6994 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw_CC, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 477; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6995
6996 /* "pygame_sdl2/display.pyx":478
69836997 * self.blit_hw = False
69846998 * self.blit_hw_CC = False
69856999 * self.blit_hw_A = False # <<<<<<<<<<<<<<
69867000 *
69877001 * self.blit_sw = False
69887002 */
6989 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw_A, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6990
6991 /* "pygame_sdl2/display.pyx":478
7003 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_hw_A, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7004
7005 /* "pygame_sdl2/display.pyx":480
69927006 * self.blit_hw_A = False
69937007 *
69947008 * self.blit_sw = False # <<<<<<<<<<<<<<
69957009 * self.blit_sw_CC = False
69967010 * self.blit_sw_A = False
69977011 */
6998 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6999
7000 /* "pygame_sdl2/display.pyx":479
7012 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7013
7014 /* "pygame_sdl2/display.pyx":481
70017015 *
70027016 * self.blit_sw = False
70037017 * self.blit_sw_CC = False # <<<<<<<<<<<<<<
70047018 * self.blit_sw_A = False
70057019 *
70067020 */
7007 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw_CC, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7008
7009 /* "pygame_sdl2/display.pyx":480
7021 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw_CC, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7022
7023 /* "pygame_sdl2/display.pyx":482
70107024 * self.blit_sw = False
70117025 * self.blit_sw_CC = False
70127026 * self.blit_sw_A = False # <<<<<<<<<<<<<<
70137027 *
70147028 * def __repr__(self):
70157029 */
7016 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw_A, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7030 if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_blit_sw_A, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
70177031
70187032 /* "pygame_sdl2/display.pyx":425
70197033 * class Info(object):
70407054 return __pyx_r;
70417055 }
70427056
7043 /* "pygame_sdl2/display.pyx":482
7057 /* "pygame_sdl2/display.pyx":484
70447058 * self.blit_sw_A = False
70457059 *
70467060 * def __repr__(self): # <<<<<<<<<<<<<<
70757089 int __pyx_clineno = 0;
70767090 __Pyx_RefNannySetupContext("__repr__", 0);
70777091
7078 /* "pygame_sdl2/display.pyx":483
7092 /* "pygame_sdl2/display.pyx":485
70797093 *
70807094 * def __repr__(self):
70817095 * return "<Info({!r})>".format(self.__dict__) # <<<<<<<<<<<<<<
70837097 *
70847098 */
70857099 __Pyx_XDECREF(__pyx_r);
7086 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Info_r, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7100 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Info_r, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
70877101 __Pyx_GOTREF(__pyx_t_2);
7088 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_dict); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7102 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_dict); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
70897103 __Pyx_GOTREF(__pyx_t_3);
70907104 __pyx_t_4 = NULL;
70917105 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) {
70987112 }
70997113 }
71007114 if (!__pyx_t_4) {
7101 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7115 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
71027116 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
71037117 __Pyx_GOTREF(__pyx_t_1);
71047118 } else {
7105 __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7119 __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
71067120 __Pyx_GOTREF(__pyx_t_5);
71077121 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
71087122 __Pyx_GIVEREF(__pyx_t_3);
71097123 PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3);
71107124 __pyx_t_3 = 0;
7111 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7125 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
71127126 __Pyx_GOTREF(__pyx_t_1);
71137127 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
71147128 }
71177131 __pyx_t_1 = 0;
71187132 goto __pyx_L0;
71197133
7120 /* "pygame_sdl2/display.pyx":482
7134 /* "pygame_sdl2/display.pyx":484
71217135 * self.blit_sw_A = False
71227136 *
71237137 * def __repr__(self): # <<<<<<<<<<<<<<
71407154 return __pyx_r;
71417155 }
71427156
7143 /* "pygame_sdl2/display.pyx":486
7157 /* "pygame_sdl2/display.pyx":488
71447158 *
71457159 *
71467160 * def get_wm_info(): # <<<<<<<<<<<<<<
71747188 int __pyx_clineno = 0;
71757189 __Pyx_RefNannySetupContext("get_wm_info", 0);
71767190
7177 /* "pygame_sdl2/display.pyx":487
7191 /* "pygame_sdl2/display.pyx":489
71787192 *
71797193 * def get_wm_info():
71807194 * if main_window: # <<<<<<<<<<<<<<
71817195 * return main_window.get_wm_info()
71827196 *
71837197 */
7184 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7198 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
71857199 if (__pyx_t_1) {
71867200
7187 /* "pygame_sdl2/display.pyx":488
7201 /* "pygame_sdl2/display.pyx":490
71887202 * def get_wm_info():
71897203 * if main_window:
71907204 * return main_window.get_wm_info() # <<<<<<<<<<<<<<
71927206 * return {}
71937207 */
71947208 __Pyx_XDECREF(__pyx_r);
7195 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_wm_info); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7209 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_wm_info); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
71967210 __Pyx_GOTREF(__pyx_t_3);
71977211 __pyx_t_4 = NULL;
71987212 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
72057219 }
72067220 }
72077221 if (__pyx_t_4) {
7208 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7222 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
72097223 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
72107224 } else {
7211 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7225 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
72127226 }
72137227 __Pyx_GOTREF(__pyx_t_2);
72147228 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
72167230 __pyx_t_2 = 0;
72177231 goto __pyx_L0;
72187232
7219 /* "pygame_sdl2/display.pyx":487
7233 /* "pygame_sdl2/display.pyx":489
72207234 *
72217235 * def get_wm_info():
72227236 * if main_window: # <<<<<<<<<<<<<<
72257239 */
72267240 }
72277241
7228 /* "pygame_sdl2/display.pyx":490
7242 /* "pygame_sdl2/display.pyx":492
72297243 * return main_window.get_wm_info()
72307244 *
72317245 * return {} # <<<<<<<<<<<<<<
72337247 *
72347248 */
72357249 __Pyx_XDECREF(__pyx_r);
7236 __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7250 __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
72377251 __Pyx_GOTREF(__pyx_t_2);
72387252 __pyx_r = __pyx_t_2;
72397253 __pyx_t_2 = 0;
72407254 goto __pyx_L0;
72417255
7242 /* "pygame_sdl2/display.pyx":486
7256 /* "pygame_sdl2/display.pyx":488
72437257 *
72447258 *
72457259 * def get_wm_info(): # <<<<<<<<<<<<<<
72607274 return __pyx_r;
72617275 }
72627276
7263 /* "pygame_sdl2/display.pyx":493
7277 /* "pygame_sdl2/display.pyx":495
72647278 *
72657279 *
72667280 * def get_num_video_displays(): # <<<<<<<<<<<<<<
72967310 int __pyx_clineno = 0;
72977311 __Pyx_RefNannySetupContext("get_num_video_displays", 0);
72987312
7299 /* "pygame_sdl2/display.pyx":498
7313 /* "pygame_sdl2/display.pyx":500
73007314 * """
73017315 *
73027316 * rv = SDL_GetNumVideoDisplays() # <<<<<<<<<<<<<<
73057319 */
73067320 __pyx_v_rv = SDL_GetNumVideoDisplays();
73077321
7308 /* "pygame_sdl2/display.pyx":500
7322 /* "pygame_sdl2/display.pyx":502
73097323 * rv = SDL_GetNumVideoDisplays()
73107324 *
73117325 * if rv < 0: # <<<<<<<<<<<<<<
73157329 __pyx_t_1 = ((__pyx_v_rv < 0) != 0);
73167330 if (__pyx_t_1) {
73177331
7318 /* "pygame_sdl2/display.pyx":501
7332 /* "pygame_sdl2/display.pyx":503
73197333 *
73207334 * if rv < 0:
73217335 * raise error() # <<<<<<<<<<<<<<
73227336 *
73237337 * return rv
73247338 */
7325 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7339 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
73267340 __Pyx_GOTREF(__pyx_t_3);
73277341 __pyx_t_4 = NULL;
73287342 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) {
73357349 }
73367350 }
73377351 if (__pyx_t_4) {
7338 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7352 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
73397353 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
73407354 } else {
7341 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7355 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
73427356 }
73437357 __Pyx_GOTREF(__pyx_t_2);
73447358 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
73457359 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
73467360 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7347 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7348
7349 /* "pygame_sdl2/display.pyx":500
7361 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7362
7363 /* "pygame_sdl2/display.pyx":502
73507364 * rv = SDL_GetNumVideoDisplays()
73517365 *
73527366 * if rv < 0: # <<<<<<<<<<<<<<
73557369 */
73567370 }
73577371
7358 /* "pygame_sdl2/display.pyx":503
7372 /* "pygame_sdl2/display.pyx":505
73597373 * raise error()
73607374 *
73617375 * return rv # <<<<<<<<<<<<<<
73637377 *
73647378 */
73657379 __Pyx_XDECREF(__pyx_r);
7366 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7380 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
73677381 __Pyx_GOTREF(__pyx_t_2);
73687382 __pyx_r = __pyx_t_2;
73697383 __pyx_t_2 = 0;
73707384 goto __pyx_L0;
73717385
7372 /* "pygame_sdl2/display.pyx":493
7386 /* "pygame_sdl2/display.pyx":495
73737387 *
73747388 *
73757389 * def get_num_video_displays(): # <<<<<<<<<<<<<<
73907404 return __pyx_r;
73917405 }
73927406
7393 /* "pygame_sdl2/display.pyx":506
7407 /* "pygame_sdl2/display.pyx":508
73947408 *
73957409 *
73967410 * def list_modes(depth=0, flags=0, display=0): # <<<<<<<<<<<<<<
74477461 }
74487462 }
74497463 if (unlikely(kw_args > 0)) {
7450 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "list_modes") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7464 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "list_modes") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
74517465 }
74527466 } else {
74537467 switch (PyTuple_GET_SIZE(__pyx_args)) {
74647478 }
74657479 goto __pyx_L4_argument_unpacking_done;
74667480 __pyx_L5_argtuple_error:;
7467 __Pyx_RaiseArgtupleInvalid("list_modes", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7481 __Pyx_RaiseArgtupleInvalid("list_modes", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
74687482 __pyx_L3_error:;
74697483 __Pyx_AddTraceback("pygame_sdl2.display.list_modes", __pyx_clineno, __pyx_lineno, __pyx_filename);
74707484 __Pyx_RefNannyFinishContext();
74987512 int __pyx_clineno = 0;
74997513 __Pyx_RefNannySetupContext("list_modes", 0);
75007514
7501 /* "pygame_sdl2/display.pyx":516
7515 /* "pygame_sdl2/display.pyx":518
75027516 * cdef SDL_DisplayMode mode
75037517 *
75047518 * rv = [ ] # <<<<<<<<<<<<<<
75057519 *
75067520 * num_modes = SDL_GetNumDisplayModes(display)
75077521 */
7508 __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7522 __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75097523 __Pyx_GOTREF(__pyx_t_1);
75107524 __pyx_v_rv = ((PyObject*)__pyx_t_1);
75117525 __pyx_t_1 = 0;
75127526
7513 /* "pygame_sdl2/display.pyx":518
7527 /* "pygame_sdl2/display.pyx":520
75147528 * rv = [ ]
75157529 *
75167530 * num_modes = SDL_GetNumDisplayModes(display) # <<<<<<<<<<<<<<
75177531 * if num_modes < 0:
75187532 * raise error()
75197533 */
7520 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_v_display); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7534 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_v_display); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75217535 __pyx_v_num_modes = SDL_GetNumDisplayModes(__pyx_t_2);
75227536
7523 /* "pygame_sdl2/display.pyx":519
7537 /* "pygame_sdl2/display.pyx":521
75247538 *
75257539 * num_modes = SDL_GetNumDisplayModes(display)
75267540 * if num_modes < 0: # <<<<<<<<<<<<<<
75307544 __pyx_t_3 = ((__pyx_v_num_modes < 0) != 0);
75317545 if (__pyx_t_3) {
75327546
7533 /* "pygame_sdl2/display.pyx":520
7547 /* "pygame_sdl2/display.pyx":522
75347548 * num_modes = SDL_GetNumDisplayModes(display)
75357549 * if num_modes < 0:
75367550 * raise error() # <<<<<<<<<<<<<<
75377551 *
75387552 * for 0 <= i < num_modes:
75397553 */
7540 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7554 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75417555 __Pyx_GOTREF(__pyx_t_4);
75427556 __pyx_t_5 = NULL;
75437557 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_4))) {
75507564 }
75517565 }
75527566 if (__pyx_t_5) {
7553 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7567 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75547568 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
75557569 } else {
7556 __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7570 __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75577571 }
75587572 __Pyx_GOTREF(__pyx_t_1);
75597573 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
75607574 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
75617575 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7562 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7563
7564 /* "pygame_sdl2/display.pyx":519
7576 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7577
7578 /* "pygame_sdl2/display.pyx":521
75657579 *
75667580 * num_modes = SDL_GetNumDisplayModes(display)
75677581 * if num_modes < 0: # <<<<<<<<<<<<<<
75707584 */
75717585 }
75727586
7573 /* "pygame_sdl2/display.pyx":522
7587 /* "pygame_sdl2/display.pyx":524
75747588 * raise error()
75757589 *
75767590 * for 0 <= i < num_modes: # <<<<<<<<<<<<<<
75807594 __pyx_t_2 = __pyx_v_num_modes;
75817595 for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_2; __pyx_v_i++) {
75827596
7583 /* "pygame_sdl2/display.pyx":523
7597 /* "pygame_sdl2/display.pyx":525
75847598 *
75857599 * for 0 <= i < num_modes:
75867600 * if SDL_GetDisplayMode(display, i, &mode) == 0: # <<<<<<<<<<<<<<
75877601 * t = (mode.w, mode.h)
75887602 * if t not in rv:
75897603 */
7590 __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_v_display); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7604 __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_v_display); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
75917605 __pyx_t_3 = ((SDL_GetDisplayMode(__pyx_t_6, __pyx_v_i, (&__pyx_v_mode)) == 0) != 0);
75927606 if (__pyx_t_3) {
75937607
7594 /* "pygame_sdl2/display.pyx":524
7608 /* "pygame_sdl2/display.pyx":526
75957609 * for 0 <= i < num_modes:
75967610 * if SDL_GetDisplayMode(display, i, &mode) == 0:
75977611 * t = (mode.w, mode.h) # <<<<<<<<<<<<<<
75987612 * if t not in rv:
75997613 * rv.append(t)
76007614 */
7601 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_mode.w); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7615 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_mode.w); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
76027616 __Pyx_GOTREF(__pyx_t_1);
7603 __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_mode.h); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7617 __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_mode.h); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
76047618 __Pyx_GOTREF(__pyx_t_4);
7605 __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7619 __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
76067620 __Pyx_GOTREF(__pyx_t_5);
76077621 __Pyx_GIVEREF(__pyx_t_1);
76087622 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
76137627 __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_5);
76147628 __pyx_t_5 = 0;
76157629
7616 /* "pygame_sdl2/display.pyx":525
7630 /* "pygame_sdl2/display.pyx":527
76177631 * if SDL_GetDisplayMode(display, i, &mode) == 0:
76187632 * t = (mode.w, mode.h)
76197633 * if t not in rv: # <<<<<<<<<<<<<<
76207634 * rv.append(t)
76217635 *
76227636 */
7623 __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_t, __pyx_v_rv, Py_NE)); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7637 __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_t, __pyx_v_rv, Py_NE)); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
76247638 __pyx_t_7 = (__pyx_t_3 != 0);
76257639 if (__pyx_t_7) {
76267640
7627 /* "pygame_sdl2/display.pyx":526
7641 /* "pygame_sdl2/display.pyx":528
76287642 * t = (mode.w, mode.h)
76297643 * if t not in rv:
76307644 * rv.append(t) # <<<<<<<<<<<<<<
76317645 *
76327646 * return rv
76337647 */
7634 __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_rv, __pyx_v_t); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7635
7636 /* "pygame_sdl2/display.pyx":525
7648 __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_rv, __pyx_v_t); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7649
7650 /* "pygame_sdl2/display.pyx":527
76377651 * if SDL_GetDisplayMode(display, i, &mode) == 0:
76387652 * t = (mode.w, mode.h)
76397653 * if t not in rv: # <<<<<<<<<<<<<<
76427656 */
76437657 }
76447658
7645 /* "pygame_sdl2/display.pyx":523
7659 /* "pygame_sdl2/display.pyx":525
76467660 *
76477661 * for 0 <= i < num_modes:
76487662 * if SDL_GetDisplayMode(display, i, &mode) == 0: # <<<<<<<<<<<<<<
76527666 }
76537667 }
76547668
7655 /* "pygame_sdl2/display.pyx":528
7669 /* "pygame_sdl2/display.pyx":530
76567670 * rv.append(t)
76577671 *
76587672 * return rv # <<<<<<<<<<<<<<
76647678 __pyx_r = __pyx_v_rv;
76657679 goto __pyx_L0;
76667680
7667 /* "pygame_sdl2/display.pyx":506
7681 /* "pygame_sdl2/display.pyx":508
76687682 *
76697683 *
76707684 * def list_modes(depth=0, flags=0, display=0): # <<<<<<<<<<<<<<
76877701 return __pyx_r;
76887702 }
76897703
7690 /* "pygame_sdl2/display.pyx":531
7704 /* "pygame_sdl2/display.pyx":533
76917705 *
76927706 *
76937707 * def mode_ok(size, flags=0, depth=0): # <<<<<<<<<<<<<<
77417755 }
77427756 }
77437757 if (unlikely(kw_args > 0)) {
7744 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mode_ok") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7758 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mode_ok") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
77457759 }
77467760 } else {
77477761 switch (PyTuple_GET_SIZE(__pyx_args)) {
77587772 }
77597773 goto __pyx_L4_argument_unpacking_done;
77607774 __pyx_L5_argtuple_error:;
7761 __Pyx_RaiseArgtupleInvalid("mode_ok", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7775 __Pyx_RaiseArgtupleInvalid("mode_ok", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
77627776 __pyx_L3_error:;
77637777 __Pyx_AddTraceback("pygame_sdl2.display.mode_ok", __pyx_clineno, __pyx_lineno, __pyx_filename);
77647778 __Pyx_RefNannyFinishContext();
77847798 int __pyx_clineno = 0;
77857799 __Pyx_RefNannySetupContext("mode_ok", 0);
77867800
7787 /* "pygame_sdl2/display.pyx":536
7801 /* "pygame_sdl2/display.pyx":538
77887802 * """
77897803 *
77907804 * return tuple(size) in list_modes() # <<<<<<<<<<<<<<
77927806 * def gl_reset_attributes():
77937807 */
77947808 __Pyx_XDECREF(__pyx_r);
7795 __pyx_t_1 = PySequence_Tuple(__pyx_v_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7809 __pyx_t_1 = PySequence_Tuple(__pyx_v_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
77967810 __Pyx_GOTREF(__pyx_t_1);
7797 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_list_modes); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7811 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_list_modes); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
77987812 __Pyx_GOTREF(__pyx_t_3);
77997813 __pyx_t_4 = NULL;
78007814 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) {
78077821 }
78087822 }
78097823 if (__pyx_t_4) {
7810 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7824 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
78117825 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
78127826 } else {
7813 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7827 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
78147828 }
78157829 __Pyx_GOTREF(__pyx_t_2);
78167830 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
7817 __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7831 __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
78187832 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
78197833 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7820 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7834 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
78217835 __Pyx_GOTREF(__pyx_t_2);
78227836 __pyx_r = __pyx_t_2;
78237837 __pyx_t_2 = 0;
78247838 goto __pyx_L0;
78257839
7826 /* "pygame_sdl2/display.pyx":531
7840 /* "pygame_sdl2/display.pyx":533
78277841 *
78287842 *
78297843 * def mode_ok(size, flags=0, depth=0): # <<<<<<<<<<<<<<
78457859 return __pyx_r;
78467860 }
78477861
7848 /* "pygame_sdl2/display.pyx":538
7862 /* "pygame_sdl2/display.pyx":540
78497863 * return tuple(size) in list_modes()
78507864 *
78517865 * def gl_reset_attributes(): # <<<<<<<<<<<<<<
78727886 __Pyx_RefNannyDeclarations
78737887 __Pyx_RefNannySetupContext("gl_reset_attributes", 0);
78747888
7875 /* "pygame_sdl2/display.pyx":539
7889 /* "pygame_sdl2/display.pyx":541
78767890 *
78777891 * def gl_reset_attributes():
78787892 * SDL_GL_ResetAttributes() # <<<<<<<<<<<<<<
78817895 */
78827896 SDL_GL_ResetAttributes();
78837897
7884 /* "pygame_sdl2/display.pyx":538
7898 /* "pygame_sdl2/display.pyx":540
78857899 * return tuple(size) in list_modes()
78867900 *
78877901 * def gl_reset_attributes(): # <<<<<<<<<<<<<<
78967910 return __pyx_r;
78977911 }
78987912
7899 /* "pygame_sdl2/display.pyx":541
7913 /* "pygame_sdl2/display.pyx":543
79007914 * SDL_GL_ResetAttributes()
79017915 *
79027916 * def gl_set_attribute(flag, value): # <<<<<<<<<<<<<<
79367950 case 1:
79377951 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
79387952 else {
7939 __Pyx_RaiseArgtupleInvalid("gl_set_attribute", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7953 __Pyx_RaiseArgtupleInvalid("gl_set_attribute", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
79407954 }
79417955 }
79427956 if (unlikely(kw_args > 0)) {
7943 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "gl_set_attribute") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7957 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "gl_set_attribute") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
79447958 }
79457959 } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
79467960 goto __pyx_L5_argtuple_error;
79537967 }
79547968 goto __pyx_L4_argument_unpacking_done;
79557969 __pyx_L5_argtuple_error:;
7956 __Pyx_RaiseArgtupleInvalid("gl_set_attribute", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
7970 __Pyx_RaiseArgtupleInvalid("gl_set_attribute", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
79577971 __pyx_L3_error:;
79587972 __Pyx_AddTraceback("pygame_sdl2.display.gl_set_attribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
79597973 __Pyx_RefNannyFinishContext();
79817995 int __pyx_clineno = 0;
79827996 __Pyx_RefNannySetupContext("gl_set_attribute", 0);
79837997
7984 /* "pygame_sdl2/display.pyx":543
7998 /* "pygame_sdl2/display.pyx":545
79857999 * def gl_set_attribute(flag, value):
79868000 *
79878001 * if flag == GL_SWAP_CONTROL: # <<<<<<<<<<<<<<
79888002 * if ios:
79898003 * return
79908004 */
7991 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_GL_SWAP_CONTROL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8005 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_GL_SWAP_CONTROL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
79928006 __Pyx_GOTREF(__pyx_t_1);
7993 __pyx_t_2 = PyObject_RichCompare(__pyx_v_flag, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8007 __pyx_t_2 = PyObject_RichCompare(__pyx_v_flag, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
79948008 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7995 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8009 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
79968010 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
79978011 if (__pyx_t_3) {
79988012
7999 /* "pygame_sdl2/display.pyx":544
8013 /* "pygame_sdl2/display.pyx":546
80008014 *
80018015 * if flag == GL_SWAP_CONTROL:
80028016 * if ios: # <<<<<<<<<<<<<<
80038017 * return
80048018 *
80058019 */
8006 __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ios); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8020 __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ios); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
80078021 __Pyx_GOTREF(__pyx_t_2);
8008 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8022 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
80098023 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
80108024 if (__pyx_t_3) {
80118025
8012 /* "pygame_sdl2/display.pyx":545
8026 /* "pygame_sdl2/display.pyx":547
80138027 * if flag == GL_SWAP_CONTROL:
80148028 * if ios:
80158029 * return # <<<<<<<<<<<<<<
80208034 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
80218035 goto __pyx_L0;
80228036
8023 /* "pygame_sdl2/display.pyx":544
8037 /* "pygame_sdl2/display.pyx":546
80248038 *
80258039 * if flag == GL_SWAP_CONTROL:
80268040 * if ios: # <<<<<<<<<<<<<<
80298043 */
80308044 }
80318045
8032 /* "pygame_sdl2/display.pyx":550
8046 /* "pygame_sdl2/display.pyx":552
80338047 * # to deal with the case where the negative interval isn't
80348048 * # supported. Then give up and carry on.
80358049 * if SDL_GL_SetSwapInterval(value): # <<<<<<<<<<<<<<
80368050 * SDL_GL_SetSwapInterval(-value)
80378051 *
80388052 */
8039 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8053 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
80408054 __pyx_t_3 = (SDL_GL_SetSwapInterval(__pyx_t_4) != 0);
80418055 if (__pyx_t_3) {
80428056
8043 /* "pygame_sdl2/display.pyx":551
8057 /* "pygame_sdl2/display.pyx":553
80448058 * # supported. Then give up and carry on.
80458059 * if SDL_GL_SetSwapInterval(value):
80468060 * SDL_GL_SetSwapInterval(-value) # <<<<<<<<<<<<<<
80478061 *
80488062 * default_swap_control = value
80498063 */
8050 __pyx_t_2 = PyNumber_Negative(__pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 551; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8064 __pyx_t_2 = PyNumber_Negative(__pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
80518065 __Pyx_GOTREF(__pyx_t_2);
8052 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 551; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8066 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
80538067 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
80548068 SDL_GL_SetSwapInterval(__pyx_t_4);
80558069
8056 /* "pygame_sdl2/display.pyx":550
8070 /* "pygame_sdl2/display.pyx":552
80578071 * # to deal with the case where the negative interval isn't
80588072 * # supported. Then give up and carry on.
80598073 * if SDL_GL_SetSwapInterval(value): # <<<<<<<<<<<<<<
80628076 */
80638077 }
80648078
8065 /* "pygame_sdl2/display.pyx":553
8079 /* "pygame_sdl2/display.pyx":555
80668080 * SDL_GL_SetSwapInterval(-value)
80678081 *
80688082 * default_swap_control = value # <<<<<<<<<<<<<<
80728086 __Pyx_INCREF(__pyx_v_value);
80738087 __pyx_v_default_swap_control = __pyx_v_value;
80748088
8075 /* "pygame_sdl2/display.pyx":554
8089 /* "pygame_sdl2/display.pyx":556
80768090 *
80778091 * default_swap_control = value
80788092 * return # <<<<<<<<<<<<<<
80838097 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
80848098 goto __pyx_L0;
80858099
8086 /* "pygame_sdl2/display.pyx":543
8100 /* "pygame_sdl2/display.pyx":545
80878101 * def gl_set_attribute(flag, value):
80888102 *
80898103 * if flag == GL_SWAP_CONTROL: # <<<<<<<<<<<<<<
80928106 */
80938107 }
80948108
8095 /* "pygame_sdl2/display.pyx":556
8109 /* "pygame_sdl2/display.pyx":558
80968110 * return
80978111 *
80988112 * if SDL_GL_SetAttribute(flag, value): # <<<<<<<<<<<<<<
80998113 * raise error()
81008114 *
81018115 */
8102 __pyx_t_5 = ((SDL_GLattr)__Pyx_PyInt_As_SDL_GLattr(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8103 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8116 __pyx_t_5 = ((SDL_GLattr)__Pyx_PyInt_As_SDL_GLattr(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8117 __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
81048118 __pyx_t_3 = (SDL_GL_SetAttribute(__pyx_t_5, __pyx_t_4) != 0);
81058119 if (__pyx_t_3) {
81068120
8107 /* "pygame_sdl2/display.pyx":557
8121 /* "pygame_sdl2/display.pyx":559
81088122 *
81098123 * if SDL_GL_SetAttribute(flag, value):
81108124 * raise error() # <<<<<<<<<<<<<<
81118125 *
81128126 * def gl_get_attribute(flag):
81138127 */
8114 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8128 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
81158129 __Pyx_GOTREF(__pyx_t_1);
81168130 __pyx_t_6 = NULL;
81178131 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_1))) {
81248138 }
81258139 }
81268140 if (__pyx_t_6) {
8127 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8141 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
81288142 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
81298143 } else {
8130 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8144 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
81318145 }
81328146 __Pyx_GOTREF(__pyx_t_2);
81338147 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
81348148 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
81358149 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8136 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8137
8138 /* "pygame_sdl2/display.pyx":556
8150 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8151
8152 /* "pygame_sdl2/display.pyx":558
81398153 * return
81408154 *
81418155 * if SDL_GL_SetAttribute(flag, value): # <<<<<<<<<<<<<<
81448158 */
81458159 }
81468160
8147 /* "pygame_sdl2/display.pyx":541
8161 /* "pygame_sdl2/display.pyx":543
81488162 * SDL_GL_ResetAttributes()
81498163 *
81508164 * def gl_set_attribute(flag, value): # <<<<<<<<<<<<<<
81688182 return __pyx_r;
81698183 }
81708184
8171 /* "pygame_sdl2/display.pyx":559
8185 /* "pygame_sdl2/display.pyx":561
81728186 * raise error()
81738187 *
81748188 * def gl_get_attribute(flag): # <<<<<<<<<<<<<<
82048218 int __pyx_clineno = 0;
82058219 __Pyx_RefNannySetupContext("gl_get_attribute", 0);
82068220
8207 /* "pygame_sdl2/display.pyx":562
8221 /* "pygame_sdl2/display.pyx":564
82088222 * cdef int rv
82098223 *
82108224 * if flag == GL_SWAP_CONTROL: # <<<<<<<<<<<<<<
82118225 * return SDL_GL_GetSwapInterval()
82128226 *
82138227 */
8214 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_GL_SWAP_CONTROL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8228 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_GL_SWAP_CONTROL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82158229 __Pyx_GOTREF(__pyx_t_1);
8216 __pyx_t_2 = PyObject_RichCompare(__pyx_v_flag, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8230 __pyx_t_2 = PyObject_RichCompare(__pyx_v_flag, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82178231 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8218 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8232 __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82198233 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
82208234 if (__pyx_t_3) {
82218235
8222 /* "pygame_sdl2/display.pyx":563
8236 /* "pygame_sdl2/display.pyx":565
82238237 *
82248238 * if flag == GL_SWAP_CONTROL:
82258239 * return SDL_GL_GetSwapInterval() # <<<<<<<<<<<<<<
82278241 * if SDL_GL_GetAttribute(flag, &rv):
82288242 */
82298243 __Pyx_XDECREF(__pyx_r);
8230 __pyx_t_2 = __Pyx_PyInt_From_int(SDL_GL_GetSwapInterval()); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8244 __pyx_t_2 = __Pyx_PyInt_From_int(SDL_GL_GetSwapInterval()); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82318245 __Pyx_GOTREF(__pyx_t_2);
82328246 __pyx_r = __pyx_t_2;
82338247 __pyx_t_2 = 0;
82348248 goto __pyx_L0;
82358249
8236 /* "pygame_sdl2/display.pyx":562
8250 /* "pygame_sdl2/display.pyx":564
82378251 * cdef int rv
82388252 *
82398253 * if flag == GL_SWAP_CONTROL: # <<<<<<<<<<<<<<
82428256 */
82438257 }
82448258
8245 /* "pygame_sdl2/display.pyx":565
8259 /* "pygame_sdl2/display.pyx":567
82468260 * return SDL_GL_GetSwapInterval()
82478261 *
82488262 * if SDL_GL_GetAttribute(flag, &rv): # <<<<<<<<<<<<<<
82498263 * raise error()
82508264 *
82518265 */
8252 __pyx_t_4 = ((SDL_GLattr)__Pyx_PyInt_As_SDL_GLattr(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8266 __pyx_t_4 = ((SDL_GLattr)__Pyx_PyInt_As_SDL_GLattr(__pyx_v_flag)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82538267 __pyx_t_3 = (SDL_GL_GetAttribute(__pyx_t_4, (&__pyx_v_rv)) != 0);
82548268 if (__pyx_t_3) {
82558269
8256 /* "pygame_sdl2/display.pyx":566
8270 /* "pygame_sdl2/display.pyx":568
82578271 *
82588272 * if SDL_GL_GetAttribute(flag, &rv):
82598273 * raise error() # <<<<<<<<<<<<<<
82608274 *
82618275 * return rv
82628276 */
8263 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8277 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82648278 __Pyx_GOTREF(__pyx_t_1);
82658279 __pyx_t_5 = NULL;
82668280 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_1))) {
82738287 }
82748288 }
82758289 if (__pyx_t_5) {
8276 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8290 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82778291 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
82788292 } else {
8279 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8293 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
82808294 }
82818295 __Pyx_GOTREF(__pyx_t_2);
82828296 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
82838297 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
82848298 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8285 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8286
8287 /* "pygame_sdl2/display.pyx":565
8299 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8300
8301 /* "pygame_sdl2/display.pyx":567
82888302 * return SDL_GL_GetSwapInterval()
82898303 *
82908304 * if SDL_GL_GetAttribute(flag, &rv): # <<<<<<<<<<<<<<
82938307 */
82948308 }
82958309
8296 /* "pygame_sdl2/display.pyx":568
8310 /* "pygame_sdl2/display.pyx":570
82978311 * raise error()
82988312 *
82998313 * return rv # <<<<<<<<<<<<<<
83018315 * def gl_load_library(path):
83028316 */
83038317 __Pyx_XDECREF(__pyx_r);
8304 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8318 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
83058319 __Pyx_GOTREF(__pyx_t_2);
83068320 __pyx_r = __pyx_t_2;
83078321 __pyx_t_2 = 0;
83088322 goto __pyx_L0;
83098323
8310 /* "pygame_sdl2/display.pyx":559
8324 /* "pygame_sdl2/display.pyx":561
83118325 * raise error()
83128326 *
83138327 * def gl_get_attribute(flag): # <<<<<<<<<<<<<<
83288342 return __pyx_r;
83298343 }
83308344
8331 /* "pygame_sdl2/display.pyx":570
8345 /* "pygame_sdl2/display.pyx":572
83328346 * return rv
83338347 *
83348348 * def gl_load_library(path): # <<<<<<<<<<<<<<
83648378 int __pyx_clineno = 0;
83658379 __Pyx_RefNannySetupContext("gl_load_library", 0);
83668380
8367 /* "pygame_sdl2/display.pyx":571
8381 /* "pygame_sdl2/display.pyx":573
83688382 *
83698383 * def gl_load_library(path):
83708384 * if path is None: # <<<<<<<<<<<<<<
83758389 __pyx_t_2 = (__pyx_t_1 != 0);
83768390 if (__pyx_t_2) {
83778391
8378 /* "pygame_sdl2/display.pyx":572
8392 /* "pygame_sdl2/display.pyx":574
83798393 * def gl_load_library(path):
83808394 * if path is None:
83818395 * if SDL_GL_LoadLibrary(NULL): # <<<<<<<<<<<<<<
83858399 __pyx_t_2 = (SDL_GL_LoadLibrary(NULL) != 0);
83868400 if (__pyx_t_2) {
83878401
8388 /* "pygame_sdl2/display.pyx":573
8402 /* "pygame_sdl2/display.pyx":575
83898403 * if path is None:
83908404 * if SDL_GL_LoadLibrary(NULL):
83918405 * raise error() # <<<<<<<<<<<<<<
83928406 * else:
83938407 * if SDL_GL_LoadLibrary(path):
83948408 */
8395 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8409 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
83968410 __Pyx_GOTREF(__pyx_t_4);
83978411 __pyx_t_5 = NULL;
83988412 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_4))) {
84058419 }
84068420 }
84078421 if (__pyx_t_5) {
8408 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8422 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84098423 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
84108424 } else {
8411 __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8425 __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84128426 }
84138427 __Pyx_GOTREF(__pyx_t_3);
84148428 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
84158429 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
84168430 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8417 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8418
8419 /* "pygame_sdl2/display.pyx":572
8431 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8432
8433 /* "pygame_sdl2/display.pyx":574
84208434 * def gl_load_library(path):
84218435 * if path is None:
84228436 * if SDL_GL_LoadLibrary(NULL): # <<<<<<<<<<<<<<
84258439 */
84268440 }
84278441
8428 /* "pygame_sdl2/display.pyx":571
8442 /* "pygame_sdl2/display.pyx":573
84298443 *
84308444 * def gl_load_library(path):
84318445 * if path is None: # <<<<<<<<<<<<<<
84358449 goto __pyx_L3;
84368450 }
84378451
8438 /* "pygame_sdl2/display.pyx":575
8452 /* "pygame_sdl2/display.pyx":577
84398453 * raise error()
84408454 * else:
84418455 * if SDL_GL_LoadLibrary(path): # <<<<<<<<<<<<<<
84438457 *
84448458 */
84458459 /*else*/ {
8446 __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_path); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8460 __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_path); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84478461 __pyx_t_2 = (SDL_GL_LoadLibrary(__pyx_t_6) != 0);
84488462 if (__pyx_t_2) {
84498463
8450 /* "pygame_sdl2/display.pyx":576
8464 /* "pygame_sdl2/display.pyx":578
84518465 * else:
84528466 * if SDL_GL_LoadLibrary(path):
84538467 * raise error() # <<<<<<<<<<<<<<
84548468 *
84558469 * def gl_unload_library():
84568470 */
8457 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8471 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84588472 __Pyx_GOTREF(__pyx_t_4);
84598473 __pyx_t_5 = NULL;
84608474 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_4))) {
84678481 }
84688482 }
84698483 if (__pyx_t_5) {
8470 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8484 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84718485 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
84728486 } else {
8473 __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8487 __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
84748488 }
84758489 __Pyx_GOTREF(__pyx_t_3);
84768490 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
84778491 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
84788492 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8479 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8480
8481 /* "pygame_sdl2/display.pyx":575
8493 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8494
8495 /* "pygame_sdl2/display.pyx":577
84828496 * raise error()
84838497 * else:
84848498 * if SDL_GL_LoadLibrary(path): # <<<<<<<<<<<<<<
84898503 }
84908504 __pyx_L3:;
84918505
8492 /* "pygame_sdl2/display.pyx":570
8506 /* "pygame_sdl2/display.pyx":572
84938507 * return rv
84948508 *
84958509 * def gl_load_library(path): # <<<<<<<<<<<<<<
85128526 return __pyx_r;
85138527 }
85148528
8515 /* "pygame_sdl2/display.pyx":578
8529 /* "pygame_sdl2/display.pyx":580
85168530 * raise error()
85178531 *
85188532 * def gl_unload_library(): # <<<<<<<<<<<<<<
85398553 __Pyx_RefNannyDeclarations
85408554 __Pyx_RefNannySetupContext("gl_unload_library", 0);
85418555
8542 /* "pygame_sdl2/display.pyx":579
8556 /* "pygame_sdl2/display.pyx":581
85438557 *
85448558 * def gl_unload_library():
85458559 * SDL_GL_UnloadLibrary() # <<<<<<<<<<<<<<
85488562 */
85498563 SDL_GL_UnloadLibrary();
85508564
8551 /* "pygame_sdl2/display.pyx":578
8565 /* "pygame_sdl2/display.pyx":580
85528566 * raise error()
85538567 *
85548568 * def gl_unload_library(): # <<<<<<<<<<<<<<
85638577 return __pyx_r;
85648578 }
85658579
8566 /* "pygame_sdl2/display.pyx":581
8580 /* "pygame_sdl2/display.pyx":583
85678581 * SDL_GL_UnloadLibrary()
85688582 *
85698583 * def get_active(): # <<<<<<<<<<<<<<
85978611 int __pyx_clineno = 0;
85988612 __Pyx_RefNannySetupContext("get_active", 0);
85998613
8600 /* "pygame_sdl2/display.pyx":582
8614 /* "pygame_sdl2/display.pyx":584
86018615 *
86028616 * def get_active():
86038617 * if main_window: # <<<<<<<<<<<<<<
86048618 * return main_window.get_active()
86058619 * return False
86068620 */
8607 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8621 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
86088622 if (__pyx_t_1) {
86098623
8610 /* "pygame_sdl2/display.pyx":583
8624 /* "pygame_sdl2/display.pyx":585
86118625 * def get_active():
86128626 * if main_window:
86138627 * return main_window.get_active() # <<<<<<<<<<<<<<
86158629 *
86168630 */
86178631 __Pyx_XDECREF(__pyx_r);
8618 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_active); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8632 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_active); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
86198633 __Pyx_GOTREF(__pyx_t_3);
86208634 __pyx_t_4 = NULL;
86218635 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
86288642 }
86298643 }
86308644 if (__pyx_t_4) {
8631 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8645 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
86328646 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
86338647 } else {
8634 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8648 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
86358649 }
86368650 __Pyx_GOTREF(__pyx_t_2);
86378651 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
86398653 __pyx_t_2 = 0;
86408654 goto __pyx_L0;
86418655
8642 /* "pygame_sdl2/display.pyx":582
8656 /* "pygame_sdl2/display.pyx":584
86438657 *
86448658 * def get_active():
86458659 * if main_window: # <<<<<<<<<<<<<<
86488662 */
86498663 }
86508664
8651 /* "pygame_sdl2/display.pyx":584
8665 /* "pygame_sdl2/display.pyx":586
86528666 * if main_window:
86538667 * return main_window.get_active()
86548668 * return False # <<<<<<<<<<<<<<
86608674 __pyx_r = Py_False;
86618675 goto __pyx_L0;
86628676
8663 /* "pygame_sdl2/display.pyx":581
8677 /* "pygame_sdl2/display.pyx":583
86648678 * SDL_GL_UnloadLibrary()
86658679 *
86668680 * def get_active(): # <<<<<<<<<<<<<<
86818695 return __pyx_r;
86828696 }
86838697
8684 /* "pygame_sdl2/display.pyx":586
8698 /* "pygame_sdl2/display.pyx":588
86858699 * return False
86868700 *
86878701 * def iconify(): # <<<<<<<<<<<<<<
87158729 int __pyx_clineno = 0;
87168730 __Pyx_RefNannySetupContext("iconify", 0);
87178731
8718 /* "pygame_sdl2/display.pyx":587
8732 /* "pygame_sdl2/display.pyx":589
87198733 *
87208734 * def iconify():
87218735 * if main_window: # <<<<<<<<<<<<<<
87228736 * return main_window.iconify()
87238737 *
87248738 */
8725 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8739 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
87268740 if (__pyx_t_1) {
87278741
8728 /* "pygame_sdl2/display.pyx":588
8742 /* "pygame_sdl2/display.pyx":590
87298743 * def iconify():
87308744 * if main_window:
87318745 * return main_window.iconify() # <<<<<<<<<<<<<<
87338747 * return False
87348748 */
87358749 __Pyx_XDECREF(__pyx_r);
8736 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_iconify); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8750 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_iconify); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
87378751 __Pyx_GOTREF(__pyx_t_3);
87388752 __pyx_t_4 = NULL;
87398753 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
87468760 }
87478761 }
87488762 if (__pyx_t_4) {
8749 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8763 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
87508764 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
87518765 } else {
8752 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8766 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
87538767 }
87548768 __Pyx_GOTREF(__pyx_t_2);
87558769 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
87578771 __pyx_t_2 = 0;
87588772 goto __pyx_L0;
87598773
8760 /* "pygame_sdl2/display.pyx":587
8774 /* "pygame_sdl2/display.pyx":589
87618775 *
87628776 * def iconify():
87638777 * if main_window: # <<<<<<<<<<<<<<
87668780 */
87678781 }
87688782
8769 /* "pygame_sdl2/display.pyx":590
8783 /* "pygame_sdl2/display.pyx":592
87708784 * return main_window.iconify()
87718785 *
87728786 * return False # <<<<<<<<<<<<<<
87788792 __pyx_r = Py_False;
87798793 goto __pyx_L0;
87808794
8781 /* "pygame_sdl2/display.pyx":586
8795 /* "pygame_sdl2/display.pyx":588
87828796 * return False
87838797 *
87848798 * def iconify(): # <<<<<<<<<<<<<<
87998813 return __pyx_r;
88008814 }
88018815
8802 /* "pygame_sdl2/display.pyx":592
8816 /* "pygame_sdl2/display.pyx":594
88038817 * return False
88048818 *
88058819 * def toggle_fullscreen(): # <<<<<<<<<<<<<<
88338847 int __pyx_clineno = 0;
88348848 __Pyx_RefNannySetupContext("toggle_fullscreen", 0);
88358849
8836 /* "pygame_sdl2/display.pyx":593
8850 /* "pygame_sdl2/display.pyx":595
88378851 *
88388852 * def toggle_fullscreen():
88398853 * if main_window: # <<<<<<<<<<<<<<
88408854 * return main_window.toggle_fullscreen()
88418855 *
88428856 */
8843 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8857 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 595; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
88448858 if (__pyx_t_1) {
88458859
8846 /* "pygame_sdl2/display.pyx":594
8860 /* "pygame_sdl2/display.pyx":596
88478861 * def toggle_fullscreen():
88488862 * if main_window:
88498863 * return main_window.toggle_fullscreen() # <<<<<<<<<<<<<<
88518865 * return True
88528866 */
88538867 __Pyx_XDECREF(__pyx_r);
8854 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_toggle_fullscreen); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8868 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_toggle_fullscreen); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
88558869 __Pyx_GOTREF(__pyx_t_3);
88568870 __pyx_t_4 = NULL;
88578871 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
88648878 }
88658879 }
88668880 if (__pyx_t_4) {
8867 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8881 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
88688882 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
88698883 } else {
8870 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8884 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
88718885 }
88728886 __Pyx_GOTREF(__pyx_t_2);
88738887 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
88758889 __pyx_t_2 = 0;
88768890 goto __pyx_L0;
88778891
8878 /* "pygame_sdl2/display.pyx":593
8892 /* "pygame_sdl2/display.pyx":595
88798893 *
88808894 * def toggle_fullscreen():
88818895 * if main_window: # <<<<<<<<<<<<<<
88848898 */
88858899 }
88868900
8887 /* "pygame_sdl2/display.pyx":596
8901 /* "pygame_sdl2/display.pyx":598
88888902 * return main_window.toggle_fullscreen()
88898903 *
88908904 * return True # <<<<<<<<<<<<<<
88968910 __pyx_r = Py_True;
88978911 goto __pyx_L0;
88988912
8899 /* "pygame_sdl2/display.pyx":592
8913 /* "pygame_sdl2/display.pyx":594
89008914 * return False
89018915 *
89028916 * def toggle_fullscreen(): # <<<<<<<<<<<<<<
89178931 return __pyx_r;
89188932 }
89198933
8920 /* "pygame_sdl2/display.pyx":598
8934 /* "pygame_sdl2/display.pyx":600
89218935 * return True
89228936 *
89238937 * def set_gamma(red, green=None, blue=None): # <<<<<<<<<<<<<<
89708984 }
89718985 }
89728986 if (unlikely(kw_args > 0)) {
8973 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_gamma") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8987 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_gamma") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
89748988 }
89758989 } else {
89768990 switch (PyTuple_GET_SIZE(__pyx_args)) {
89879001 }
89889002 goto __pyx_L4_argument_unpacking_done;
89899003 __pyx_L5_argtuple_error:;
8990 __Pyx_RaiseArgtupleInvalid("set_gamma", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9004 __Pyx_RaiseArgtupleInvalid("set_gamma", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
89919005 __pyx_L3_error:;
89929006 __Pyx_AddTraceback("pygame_sdl2.display.set_gamma", __pyx_clineno, __pyx_lineno, __pyx_filename);
89939007 __Pyx_RefNannyFinishContext();
90149028 int __pyx_clineno = 0;
90159029 __Pyx_RefNannySetupContext("set_gamma", 0);
90169030
9017 /* "pygame_sdl2/display.pyx":599
9031 /* "pygame_sdl2/display.pyx":601
90189032 *
90199033 * def set_gamma(red, green=None, blue=None):
90209034 * if main_window: # <<<<<<<<<<<<<<
90219035 * return main_window.set_gamma(red, green, blue)
90229036 * return False
90239037 */
9024 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9038 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
90259039 if (__pyx_t_1) {
90269040
9027 /* "pygame_sdl2/display.pyx":600
9041 /* "pygame_sdl2/display.pyx":602
90289042 * def set_gamma(red, green=None, blue=None):
90299043 * if main_window:
90309044 * return main_window.set_gamma(red, green, blue) # <<<<<<<<<<<<<<
90329046 *
90339047 */
90349048 __Pyx_XDECREF(__pyx_r);
9035 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_gamma); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9049 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_gamma); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
90369050 __Pyx_GOTREF(__pyx_t_3);
90379051 __pyx_t_4 = NULL;
90389052 __pyx_t_5 = 0;
90469060 __pyx_t_5 = 1;
90479061 }
90489062 }
9049 __pyx_t_6 = PyTuple_New(3+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9063 __pyx_t_6 = PyTuple_New(3+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
90509064 __Pyx_GOTREF(__pyx_t_6);
90519065 if (__pyx_t_4) {
90529066 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
90609074 __Pyx_INCREF(__pyx_v_blue);
90619075 __Pyx_GIVEREF(__pyx_v_blue);
90629076 PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_blue);
9063 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9077 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
90649078 __Pyx_GOTREF(__pyx_t_2);
90659079 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
90669080 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
90689082 __pyx_t_2 = 0;
90699083 goto __pyx_L0;
90709084
9071 /* "pygame_sdl2/display.pyx":599
9085 /* "pygame_sdl2/display.pyx":601
90729086 *
90739087 * def set_gamma(red, green=None, blue=None):
90749088 * if main_window: # <<<<<<<<<<<<<<
90779091 */
90789092 }
90799093
9080 /* "pygame_sdl2/display.pyx":601
9094 /* "pygame_sdl2/display.pyx":603
90819095 * if main_window:
90829096 * return main_window.set_gamma(red, green, blue)
90839097 * return False # <<<<<<<<<<<<<<
90899103 __pyx_r = Py_False;
90909104 goto __pyx_L0;
90919105
9092 /* "pygame_sdl2/display.pyx":598
9106 /* "pygame_sdl2/display.pyx":600
90939107 * return True
90949108 *
90959109 * def set_gamma(red, green=None, blue=None): # <<<<<<<<<<<<<<
91119125 return __pyx_r;
91129126 }
91139127
9114 /* "pygame_sdl2/display.pyx":603
9128 /* "pygame_sdl2/display.pyx":605
91159129 * return False
91169130 *
91179131 * def set_gamma_ramp(red, green, blue): # <<<<<<<<<<<<<<
91539167 case 1:
91549168 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_green)) != 0)) kw_args--;
91559169 else {
9156 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9170 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
91579171 }
91589172 case 2:
91599173 if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_blue)) != 0)) kw_args--;
91609174 else {
9161 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9175 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
91629176 }
91639177 }
91649178 if (unlikely(kw_args > 0)) {
9165 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_gamma_ramp") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9179 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_gamma_ramp") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
91669180 }
91679181 } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
91689182 goto __pyx_L5_argtuple_error;
91779191 }
91789192 goto __pyx_L4_argument_unpacking_done;
91799193 __pyx_L5_argtuple_error:;
9180 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9194 __Pyx_RaiseArgtupleInvalid("set_gamma_ramp", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
91819195 __pyx_L3_error:;
91829196 __Pyx_AddTraceback("pygame_sdl2.display.set_gamma_ramp", __pyx_clineno, __pyx_lineno, __pyx_filename);
91839197 __Pyx_RefNannyFinishContext();
92049218 int __pyx_clineno = 0;
92059219 __Pyx_RefNannySetupContext("set_gamma_ramp", 0);
92069220
9207 /* "pygame_sdl2/display.pyx":604
9221 /* "pygame_sdl2/display.pyx":606
92089222 *
92099223 * def set_gamma_ramp(red, green, blue):
92109224 * if main_window: # <<<<<<<<<<<<<<
92119225 * return main_window.set_gamma_ramp(red, green, blue)
92129226 * return False
92139227 */
9214 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9228 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
92159229 if (__pyx_t_1) {
92169230
9217 /* "pygame_sdl2/display.pyx":605
9231 /* "pygame_sdl2/display.pyx":607
92189232 * def set_gamma_ramp(red, green, blue):
92199233 * if main_window:
92209234 * return main_window.set_gamma_ramp(red, green, blue) # <<<<<<<<<<<<<<
92229236 *
92239237 */
92249238 __Pyx_XDECREF(__pyx_r);
9225 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_gamma_ramp); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9239 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_gamma_ramp); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
92269240 __Pyx_GOTREF(__pyx_t_3);
92279241 __pyx_t_4 = NULL;
92289242 __pyx_t_5 = 0;
92369250 __pyx_t_5 = 1;
92379251 }
92389252 }
9239 __pyx_t_6 = PyTuple_New(3+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9253 __pyx_t_6 = PyTuple_New(3+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
92409254 __Pyx_GOTREF(__pyx_t_6);
92419255 if (__pyx_t_4) {
92429256 __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
92509264 __Pyx_INCREF(__pyx_v_blue);
92519265 __Pyx_GIVEREF(__pyx_v_blue);
92529266 PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_blue);
9253 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9267 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
92549268 __Pyx_GOTREF(__pyx_t_2);
92559269 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
92569270 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
92589272 __pyx_t_2 = 0;
92599273 goto __pyx_L0;
92609274
9261 /* "pygame_sdl2/display.pyx":604
9275 /* "pygame_sdl2/display.pyx":606
92629276 *
92639277 * def set_gamma_ramp(red, green, blue):
92649278 * if main_window: # <<<<<<<<<<<<<<
92679281 */
92689282 }
92699283
9270 /* "pygame_sdl2/display.pyx":606
9284 /* "pygame_sdl2/display.pyx":608
92719285 * if main_window:
92729286 * return main_window.set_gamma_ramp(red, green, blue)
92739287 * return False # <<<<<<<<<<<<<<
92799293 __pyx_r = Py_False;
92809294 goto __pyx_L0;
92819295
9282 /* "pygame_sdl2/display.pyx":603
9296 /* "pygame_sdl2/display.pyx":605
92839297 * return False
92849298 *
92859299 * def set_gamma_ramp(red, green, blue): # <<<<<<<<<<<<<<
93019315 return __pyx_r;
93029316 }
93039317
9304 /* "pygame_sdl2/display.pyx":608
9318 /* "pygame_sdl2/display.pyx":610
93059319 * return False
93069320 *
93079321 * def set_icon(surface): # <<<<<<<<<<<<<<
93389352 int __pyx_clineno = 0;
93399353 __Pyx_RefNannySetupContext("set_icon", 0);
93409354
9341 /* "pygame_sdl2/display.pyx":611
9355 /* "pygame_sdl2/display.pyx":613
93429356 * global default_icon
93439357 *
93449358 * default_icon = surface.copy() # <<<<<<<<<<<<<<
93459359 *
93469360 * if main_window is not None:
93479361 */
9348 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_surface, __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9362 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_surface, __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93499363 __Pyx_GOTREF(__pyx_t_2);
93509364 __pyx_t_3 = NULL;
93519365 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) {
93589372 }
93599373 }
93609374 if (__pyx_t_3) {
9361 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9375 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93629376 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
93639377 } else {
9364 __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9378 __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93659379 }
93669380 __Pyx_GOTREF(__pyx_t_1);
93679381 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9368 if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_icon, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9382 if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_icon, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93699383 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
93709384
9371 /* "pygame_sdl2/display.pyx":613
9385 /* "pygame_sdl2/display.pyx":615
93729386 * default_icon = surface.copy()
93739387 *
93749388 * if main_window is not None: # <<<<<<<<<<<<<<
93799393 __pyx_t_5 = (__pyx_t_4 != 0);
93809394 if (__pyx_t_5) {
93819395
9382 /* "pygame_sdl2/display.pyx":614
9396 /* "pygame_sdl2/display.pyx":616
93839397 *
93849398 * if main_window is not None:
93859399 * main_window.set_icon(default_icon) # <<<<<<<<<<<<<<
93869400 *
93879401 * def set_caption(title, icontitle = None):
93889402 */
9389 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_icon); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9403 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_icon); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93909404 __Pyx_GOTREF(__pyx_t_2);
9391 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_icon); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9405 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_icon); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
93929406 __Pyx_GOTREF(__pyx_t_3);
93939407 __pyx_t_6 = NULL;
93949408 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) {
94019415 }
94029416 }
94039417 if (!__pyx_t_6) {
9404 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9418 __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
94059419 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
94069420 __Pyx_GOTREF(__pyx_t_1);
94079421 } else {
9408 __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9422 __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
94099423 __Pyx_GOTREF(__pyx_t_7);
94109424 __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL;
94119425 __Pyx_GIVEREF(__pyx_t_3);
94129426 PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_3);
94139427 __pyx_t_3 = 0;
9414 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9428 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
94159429 __Pyx_GOTREF(__pyx_t_1);
94169430 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
94179431 }
94189432 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
94199433 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
94209434
9421 /* "pygame_sdl2/display.pyx":613
9435 /* "pygame_sdl2/display.pyx":615
94229436 * default_icon = surface.copy()
94239437 *
94249438 * if main_window is not None: # <<<<<<<<<<<<<<
94279441 */
94289442 }
94299443
9430 /* "pygame_sdl2/display.pyx":608
9444 /* "pygame_sdl2/display.pyx":610
94319445 * return False
94329446 *
94339447 * def set_icon(surface): # <<<<<<<<<<<<<<
94529466 return __pyx_r;
94539467 }
94549468
9455 /* "pygame_sdl2/display.pyx":616
9469 /* "pygame_sdl2/display.pyx":618
94569470 * main_window.set_icon(default_icon)
94579471 *
94589472 * def set_caption(title, icontitle = None): # <<<<<<<<<<<<<<
94979511 }
94989512 }
94999513 if (unlikely(kw_args > 0)) {
9500 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_caption") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9514 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_caption") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
95019515 }
95029516 } else {
95039517 switch (PyTuple_GET_SIZE(__pyx_args)) {
95129526 }
95139527 goto __pyx_L4_argument_unpacking_done;
95149528 __pyx_L5_argtuple_error:;
9515 __Pyx_RaiseArgtupleInvalid("set_caption", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9529 __Pyx_RaiseArgtupleInvalid("set_caption", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
95169530 __pyx_L3_error:;
95179531 __Pyx_AddTraceback("pygame_sdl2.display.set_caption", __pyx_clineno, __pyx_lineno, __pyx_filename);
95189532 __Pyx_RefNannyFinishContext();
95399553 int __pyx_clineno = 0;
95409554 __Pyx_RefNannySetupContext("set_caption", 0);
95419555
9542 /* "pygame_sdl2/display.pyx":619
9556 /* "pygame_sdl2/display.pyx":621
95439557 * global default_title
95449558 *
95459559 * default_title = title # <<<<<<<<<<<<<<
95469560 *
95479561 * if main_window:
95489562 */
9549 if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_title, __pyx_v_title) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9550
9551 /* "pygame_sdl2/display.pyx":621
9563 if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_title, __pyx_v_title) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9564
9565 /* "pygame_sdl2/display.pyx":623
95529566 * default_title = title
95539567 *
95549568 * if main_window: # <<<<<<<<<<<<<<
95559569 * main_window.set_caption(default_title)
95569570 *
95579571 */
9558 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9572 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95599573 if (__pyx_t_1) {
95609574
9561 /* "pygame_sdl2/display.pyx":622
9575 /* "pygame_sdl2/display.pyx":624
95629576 *
95639577 * if main_window:
95649578 * main_window.set_caption(default_title) # <<<<<<<<<<<<<<
95659579 *
95669580 * def get_caption():
95679581 */
9568 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_caption); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9582 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_set_caption); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95699583 __Pyx_GOTREF(__pyx_t_3);
9570 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_title); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9584 __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_title); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95719585 __Pyx_GOTREF(__pyx_t_4);
95729586 __pyx_t_5 = NULL;
95739587 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
95809594 }
95819595 }
95829596 if (!__pyx_t_5) {
9583 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9597 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95849598 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
95859599 __Pyx_GOTREF(__pyx_t_2);
95869600 } else {
9587 __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9601 __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95889602 __Pyx_GOTREF(__pyx_t_6);
95899603 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL;
95909604 __Pyx_GIVEREF(__pyx_t_4);
95919605 PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4);
95929606 __pyx_t_4 = 0;
9593 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9607 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
95949608 __Pyx_GOTREF(__pyx_t_2);
95959609 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
95969610 }
95979611 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
95989612 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
95999613
9600 /* "pygame_sdl2/display.pyx":621
9614 /* "pygame_sdl2/display.pyx":623
96019615 * default_title = title
96029616 *
96039617 * if main_window: # <<<<<<<<<<<<<<
96069620 */
96079621 }
96089622
9609 /* "pygame_sdl2/display.pyx":616
9623 /* "pygame_sdl2/display.pyx":618
96109624 * main_window.set_icon(default_icon)
96119625 *
96129626 * def set_caption(title, icontitle = None): # <<<<<<<<<<<<<<
96319645 return __pyx_r;
96329646 }
96339647
9634 /* "pygame_sdl2/display.pyx":624
9648 /* "pygame_sdl2/display.pyx":626
96359649 * main_window.set_caption(default_title)
96369650 *
96379651 * def get_caption(): # <<<<<<<<<<<<<<
96629676 int __pyx_clineno = 0;
96639677 __Pyx_RefNannySetupContext("get_caption", 0);
96649678
9665 /* "pygame_sdl2/display.pyx":625
9679 /* "pygame_sdl2/display.pyx":627
96669680 *
96679681 * def get_caption():
96689682 * return default_title # <<<<<<<<<<<<<<
96709684 * def get_drawable_size():
96719685 */
96729686 __Pyx_XDECREF(__pyx_r);
9673 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_title); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9687 __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_default_title); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
96749688 __Pyx_GOTREF(__pyx_t_1);
96759689 __pyx_r = __pyx_t_1;
96769690 __pyx_t_1 = 0;
96779691 goto __pyx_L0;
96789692
9679 /* "pygame_sdl2/display.pyx":624
9693 /* "pygame_sdl2/display.pyx":626
96809694 * main_window.set_caption(default_title)
96819695 *
96829696 * def get_caption(): # <<<<<<<<<<<<<<
96959709 return __pyx_r;
96969710 }
96979711
9698 /* "pygame_sdl2/display.pyx":627
9712 /* "pygame_sdl2/display.pyx":629
96999713 * return default_title
97009714 *
97019715 * def get_drawable_size(): # <<<<<<<<<<<<<<
97299743 int __pyx_clineno = 0;
97309744 __Pyx_RefNannySetupContext("get_drawable_size", 0);
97319745
9732 /* "pygame_sdl2/display.pyx":628
9746 /* "pygame_sdl2/display.pyx":630
97339747 *
97349748 * def get_drawable_size():
97359749 * if main_window: # <<<<<<<<<<<<<<
97369750 * return main_window.get_drawable_size()
97379751 * return None
97389752 */
9739 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9753 __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
97409754 if (__pyx_t_1) {
97419755
9742 /* "pygame_sdl2/display.pyx":629
9756 /* "pygame_sdl2/display.pyx":631
97439757 * def get_drawable_size():
97449758 * if main_window:
97459759 * return main_window.get_drawable_size() # <<<<<<<<<<<<<<
97479761 *
97489762 */
97499763 __Pyx_XDECREF(__pyx_r);
9750 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_drawable_size); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9764 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window), __pyx_n_s_get_drawable_size); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
97519765 __Pyx_GOTREF(__pyx_t_3);
97529766 __pyx_t_4 = NULL;
97539767 if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) {
97609774 }
97619775 }
97629776 if (__pyx_t_4) {
9763 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9777 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
97649778 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
97659779 } else {
9766 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9780 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
97679781 }
97689782 __Pyx_GOTREF(__pyx_t_2);
97699783 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
97719785 __pyx_t_2 = 0;
97729786 goto __pyx_L0;
97739787
9774 /* "pygame_sdl2/display.pyx":628
9788 /* "pygame_sdl2/display.pyx":630
97759789 *
97769790 * def get_drawable_size():
97779791 * if main_window: # <<<<<<<<<<<<<<
97809794 */
97819795 }
97829796
9783 /* "pygame_sdl2/display.pyx":630
9797 /* "pygame_sdl2/display.pyx":632
97849798 * if main_window:
97859799 * return main_window.get_drawable_size()
97869800 * return None # <<<<<<<<<<<<<<
97929806 __pyx_r = Py_None;
97939807 goto __pyx_L0;
97949808
9795 /* "pygame_sdl2/display.pyx":627
9809 /* "pygame_sdl2/display.pyx":629
97969810 * return default_title
97979811 *
97989812 * def get_drawable_size(): # <<<<<<<<<<<<<<
98139827 return __pyx_r;
98149828 }
98159829
9816 /* "pygame_sdl2/display.pyx":632
9830 /* "pygame_sdl2/display.pyx":634
98179831 * return None
98189832 *
98199833 * def get_num_video_displays(): # <<<<<<<<<<<<<<
98489862 int __pyx_clineno = 0;
98499863 __Pyx_RefNannySetupContext("get_num_video_displays", 0);
98509864
9851 /* "pygame_sdl2/display.pyx":633
9865 /* "pygame_sdl2/display.pyx":635
98529866 *
98539867 * def get_num_video_displays():
98549868 * rv = SDL_GetNumVideoDisplays() # <<<<<<<<<<<<<<
98579871 */
98589872 __pyx_v_rv = SDL_GetNumVideoDisplays();
98599873
9860 /* "pygame_sdl2/display.pyx":634
9874 /* "pygame_sdl2/display.pyx":636
98619875 * def get_num_video_displays():
98629876 * rv = SDL_GetNumVideoDisplays()
98639877 * if rv < 0: # <<<<<<<<<<<<<<
98679881 __pyx_t_1 = ((__pyx_v_rv < 0) != 0);
98689882 if (__pyx_t_1) {
98699883
9870 /* "pygame_sdl2/display.pyx":635
9884 /* "pygame_sdl2/display.pyx":637
98719885 * rv = SDL_GetNumVideoDisplays()
98729886 * if rv < 0:
98739887 * raise error() # <<<<<<<<<<<<<<
98749888 *
98759889 * return rv
98769890 */
9877 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9891 __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_error); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
98789892 __Pyx_GOTREF(__pyx_t_3);
98799893 __pyx_t_4 = NULL;
98809894 if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) {
98879901 }
98889902 }
98899903 if (__pyx_t_4) {
9890 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9904 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
98919905 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
98929906 } else {
9893 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9907 __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
98949908 }
98959909 __Pyx_GOTREF(__pyx_t_2);
98969910 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
98979911 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
98989912 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
9899 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9900
9901 /* "pygame_sdl2/display.pyx":634
9913 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9914
9915 /* "pygame_sdl2/display.pyx":636
99029916 * def get_num_video_displays():
99039917 * rv = SDL_GetNumVideoDisplays()
99049918 * if rv < 0: # <<<<<<<<<<<<<<
99079921 */
99089922 }
99099923
9910 /* "pygame_sdl2/display.pyx":637
9924 /* "pygame_sdl2/display.pyx":639
99119925 * raise error()
99129926 *
99139927 * return rv # <<<<<<<<<<<<<<
99159929 * def get_display_bounds(index):
99169930 */
99179931 __Pyx_XDECREF(__pyx_r);
9918 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9932 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rv); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
99199933 __Pyx_GOTREF(__pyx_t_2);
99209934 __pyx_r = __pyx_t_2;
99219935 __pyx_t_2 = 0;
99229936 goto __pyx_L0;
99239937
9924 /* "pygame_sdl2/display.pyx":632
9938 /* "pygame_sdl2/display.pyx":634
99259939 * return None
99269940 *
99279941 * def get_num_video_displays(): # <<<<<<<<<<<<<<
99429956 return __pyx_r;
99439957 }
99449958
9945 /* "pygame_sdl2/display.pyx":639
9959 /* "pygame_sdl2/display.pyx":641
99469960 * return rv
99479961 *
99489962 * def get_display_bounds(index): # <<<<<<<<<<<<<<
99809994 int __pyx_clineno = 0;
99819995 __Pyx_RefNannySetupContext("get_display_bounds", 0);
99829996
9983 /* "pygame_sdl2/display.pyx":641
9997 /* "pygame_sdl2/display.pyx":643
99849998 * def get_display_bounds(index):
99859999 * cdef SDL_Rect rect
998610000 * rv = SDL_GetDisplayBounds(index, &rect) # <<<<<<<<<<<<<<
998710001 *
998810002 * return (rect.x, rect.y, rect.w, rect.h)
998910003 */
9990 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_index); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10004 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_index); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
999110005 __pyx_v_rv = SDL_GetDisplayBounds(__pyx_t_1, (&__pyx_v_rect));
999210006
9993 /* "pygame_sdl2/display.pyx":643
10007 /* "pygame_sdl2/display.pyx":645
999410008 * rv = SDL_GetDisplayBounds(index, &rect)
999510009 *
999610010 * return (rect.x, rect.y, rect.w, rect.h) # <<<<<<<<<<<<<<
999810012 * def hint(hint, value):
999910013 */
1000010014 __Pyx_XDECREF(__pyx_r);
10001 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rect.x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10015 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_rect.x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1000210016 __Pyx_GOTREF(__pyx_t_2);
10003 __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_rect.y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10017 __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_rect.y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1000410018 __Pyx_GOTREF(__pyx_t_3);
10005 __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_rect.w); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10019 __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_rect.w); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1000610020 __Pyx_GOTREF(__pyx_t_4);
10007 __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_rect.h); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10021 __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_rect.h); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1000810022 __Pyx_GOTREF(__pyx_t_5);
10009 __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10023 __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1001010024 __Pyx_GOTREF(__pyx_t_6);
1001110025 __Pyx_GIVEREF(__pyx_t_2);
1001210026 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2);
1002410038 __pyx_t_6 = 0;
1002510039 goto __pyx_L0;
1002610040
10027 /* "pygame_sdl2/display.pyx":639
10041 /* "pygame_sdl2/display.pyx":641
1002810042 * return rv
1002910043 *
1003010044 * def get_display_bounds(index): # <<<<<<<<<<<<<<
1004710061 return __pyx_r;
1004810062 }
1004910063
10050 /* "pygame_sdl2/display.pyx":645
10064 /* "pygame_sdl2/display.pyx":647
1005110065 * return (rect.x, rect.y, rect.w, rect.h)
1005210066 *
1005310067 * def hint(hint, value): # <<<<<<<<<<<<<<
1008710101 case 1:
1008810102 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
1008910103 else {
10090 __Pyx_RaiseArgtupleInvalid("hint", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10104 __Pyx_RaiseArgtupleInvalid("hint", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1009110105 }
1009210106 }
1009310107 if (unlikely(kw_args > 0)) {
10094 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "hint") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10108 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "hint") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1009510109 }
1009610110 } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
1009710111 goto __pyx_L5_argtuple_error;
1010410118 }
1010510119 goto __pyx_L4_argument_unpacking_done;
1010610120 __pyx_L5_argtuple_error:;
10107 __Pyx_RaiseArgtupleInvalid("hint", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10121 __Pyx_RaiseArgtupleInvalid("hint", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1010810122 __pyx_L3_error:;
1010910123 __Pyx_AddTraceback("pygame_sdl2.display.hint", __pyx_clineno, __pyx_lineno, __pyx_filename);
1011010124 __Pyx_RefNannyFinishContext();
1013310147 __Pyx_INCREF(__pyx_v_hint);
1013410148 __Pyx_INCREF(__pyx_v_value);
1013510149
10136 /* "pygame_sdl2/display.pyx":647
10150 /* "pygame_sdl2/display.pyx":649
1013710151 * def hint(hint, value):
1013810152 *
1013910153 * if not isinstance(hint, bytes): # <<<<<<<<<<<<<<
1014410158 __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
1014510159 if (__pyx_t_2) {
1014610160
10147 /* "pygame_sdl2/display.pyx":648
10161 /* "pygame_sdl2/display.pyx":650
1014810162 *
1014910163 * if not isinstance(hint, bytes):
1015010164 * hint = hint.encode("utf-8") # <<<<<<<<<<<<<<
1015110165 *
1015210166 * if not isinstance(value, bytes):
1015310167 */
10154 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_hint, __pyx_n_s_encode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10168 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_hint, __pyx_n_s_encode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1015510169 __Pyx_GOTREF(__pyx_t_3);
10156 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10170 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1015710171 __Pyx_GOTREF(__pyx_t_4);
1015810172 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1015910173 __Pyx_DECREF_SET(__pyx_v_hint, __pyx_t_4);
1016010174 __pyx_t_4 = 0;
1016110175
10162 /* "pygame_sdl2/display.pyx":647
10176 /* "pygame_sdl2/display.pyx":649
1016310177 * def hint(hint, value):
1016410178 *
1016510179 * if not isinstance(hint, bytes): # <<<<<<<<<<<<<<
1016810182 */
1016910183 }
1017010184
10171 /* "pygame_sdl2/display.pyx":650
10185 /* "pygame_sdl2/display.pyx":652
1017210186 * hint = hint.encode("utf-8")
1017310187 *
1017410188 * if not isinstance(value, bytes): # <<<<<<<<<<<<<<
1017910193 __pyx_t_1 = ((!(__pyx_t_2 != 0)) != 0);
1018010194 if (__pyx_t_1) {
1018110195
10182 /* "pygame_sdl2/display.pyx":651
10196 /* "pygame_sdl2/display.pyx":653
1018310197 *
1018410198 * if not isinstance(value, bytes):
1018510199 * value = value.encode("utf-8") # <<<<<<<<<<<<<<
1018610200 *
1018710201 * SDL_SetHint(hint, value)
1018810202 */
10189 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10203 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1019010204 __Pyx_GOTREF(__pyx_t_4);
10191 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10205 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1019210206 __Pyx_GOTREF(__pyx_t_3);
1019310207 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
1019410208 __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_3);
1019510209 __pyx_t_3 = 0;
1019610210
10197 /* "pygame_sdl2/display.pyx":650
10211 /* "pygame_sdl2/display.pyx":652
1019810212 * hint = hint.encode("utf-8")
1019910213 *
1020010214 * if not isinstance(value, bytes): # <<<<<<<<<<<<<<
1020310217 */
1020410218 }
1020510219
10206 /* "pygame_sdl2/display.pyx":653
10220 /* "pygame_sdl2/display.pyx":655
1020710221 * value = value.encode("utf-8")
1020810222 *
1020910223 * SDL_SetHint(hint, value) # <<<<<<<<<<<<<<
1021010224 *
1021110225 * def get_platform():
1021210226 */
10213 __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_v_hint); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10214 __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_value); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10227 __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_v_hint); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10228 __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_value); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1021510229 SDL_SetHint(__pyx_t_5, __pyx_t_6);
1021610230
10217 /* "pygame_sdl2/display.pyx":645
10231 /* "pygame_sdl2/display.pyx":647
1021810232 * return (rect.x, rect.y, rect.w, rect.h)
1021910233 *
1022010234 * def hint(hint, value): # <<<<<<<<<<<<<<
1023810252 return __pyx_r;
1023910253 }
1024010254
10241 /* "pygame_sdl2/display.pyx":655
10255 /* "pygame_sdl2/display.pyx":657
1024210256 * SDL_SetHint(hint, value)
1024310257 *
1024410258 * def get_platform(): # <<<<<<<<<<<<<<
1026910283 int __pyx_clineno = 0;
1027010284 __Pyx_RefNannySetupContext("get_platform", 0);
1027110285
10272 /* "pygame_sdl2/display.pyx":656
10286 /* "pygame_sdl2/display.pyx":658
1027310287 *
1027410288 * def get_platform():
1027510289 * return SDL_GetPlatform() # <<<<<<<<<<<<<<
1027710291 * cdef api SDL_Window *PyWindow_AsWindow(window):
1027810292 */
1027910293 __Pyx_XDECREF(__pyx_r);
10280 __pyx_t_1 = __Pyx_PyBytes_FromString(SDL_GetPlatform()); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10294 __pyx_t_1 = __Pyx_PyBytes_FromString(SDL_GetPlatform()); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1028110295 __Pyx_GOTREF(__pyx_t_1);
1028210296 __pyx_r = __pyx_t_1;
1028310297 __pyx_t_1 = 0;
1028410298 goto __pyx_L0;
1028510299
10286 /* "pygame_sdl2/display.pyx":655
10300 /* "pygame_sdl2/display.pyx":657
1028710301 * SDL_SetHint(hint, value)
1028810302 *
1028910303 * def get_platform(): # <<<<<<<<<<<<<<
1030210316 return __pyx_r;
1030310317 }
1030410318
10305 /* "pygame_sdl2/display.pyx":658
10319 /* "pygame_sdl2/display.pyx":660
1030610320 * return SDL_GetPlatform()
1030710321 *
1030810322 * cdef api SDL_Window *PyWindow_AsWindow(window): # <<<<<<<<<<<<<<
1031810332 __Pyx_RefNannySetupContext("PyWindow_AsWindow", 0);
1031910333 __Pyx_INCREF(__pyx_v_window);
1032010334
10321 /* "pygame_sdl2/display.pyx":665
10335 /* "pygame_sdl2/display.pyx":667
1032210336 * """
1032310337 *
1032410338 * if window is None: # <<<<<<<<<<<<<<
1032910343 __pyx_t_2 = (__pyx_t_1 != 0);
1033010344 if (__pyx_t_2) {
1033110345
10332 /* "pygame_sdl2/display.pyx":666
10346 /* "pygame_sdl2/display.pyx":668
1033310347 *
1033410348 * if window is None:
1033510349 * window = main_window # <<<<<<<<<<<<<<
1033910353 __Pyx_INCREF(((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window));
1034010354 __Pyx_DECREF_SET(__pyx_v_window, ((PyObject *)__pyx_v_11pygame_sdl2_7display_main_window));
1034110355
10342 /* "pygame_sdl2/display.pyx":665
10356 /* "pygame_sdl2/display.pyx":667
1034310357 * """
1034410358 *
1034510359 * if window is None: # <<<<<<<<<<<<<<
1034810362 */
1034910363 }
1035010364
10351 /* "pygame_sdl2/display.pyx":668
10365 /* "pygame_sdl2/display.pyx":670
1035210366 * window = main_window
1035310367 *
1035410368 * if window is None: # <<<<<<<<<<<<<<
1035910373 __pyx_t_1 = (__pyx_t_2 != 0);
1036010374 if (__pyx_t_1) {
1036110375
10362 /* "pygame_sdl2/display.pyx":669
10376 /* "pygame_sdl2/display.pyx":671
1036310377 *
1036410378 * if window is None:
1036510379 * return NULL # <<<<<<<<<<<<<<
1036910383 __pyx_r = NULL;
1037010384 goto __pyx_L0;
1037110385
10372 /* "pygame_sdl2/display.pyx":668
10386 /* "pygame_sdl2/display.pyx":670
1037310387 * window = main_window
1037410388 *
1037510389 * if window is None: # <<<<<<<<<<<<<<
1037810392 */
1037910393 }
1038010394
10381 /* "pygame_sdl2/display.pyx":671
10395 /* "pygame_sdl2/display.pyx":673
1038210396 * return NULL
1038310397 *
1038410398 * return (<Window> window).window # <<<<<<<<<<<<<<
1038610400 __pyx_r = ((struct __pyx_obj_11pygame_sdl2_7display_Window *)__pyx_v_window)->window;
1038710401 goto __pyx_L0;
1038810402
10389 /* "pygame_sdl2/display.pyx":658
10403 /* "pygame_sdl2/display.pyx":660
1039010404 * return SDL_GetPlatform()
1039110405 *
1039210406 * cdef api SDL_Window *PyWindow_AsWindow(window): # <<<<<<<<<<<<<<
1067310687 {&__pyx_n_s_rect, __pyx_k_rect, sizeof(__pyx_k_rect), 0, 0, 1, 1},
1067410688 {&__pyx_n_s_rectangles, __pyx_k_rectangles, sizeof(__pyx_k_rectangles), 0, 0, 1, 1},
1067510689 {&__pyx_n_s_red, __pyx_k_red, sizeof(__pyx_k_red), 0, 0, 1, 1},
10690 {&__pyx_n_s_refresh_rate, __pyx_k_refresh_rate, sizeof(__pyx_k_refresh_rate), 0, 0, 1, 1},
1067610691 {&__pyx_n_s_register_init, __pyx_k_register_init, sizeof(__pyx_k_register_init), 0, 0, 1, 1},
1067710692 {&__pyx_n_s_register_quit, __pyx_k_register_quit, sizeof(__pyx_k_register_quit), 0, 0, 1, 1},
1067810693 {&__pyx_n_s_repr, __pyx_k_repr, sizeof(__pyx_k_repr), 0, 0, 1, 1},
1079210807 __Pyx_GOTREF(__pyx_tuple__8);
1079310808 __Pyx_GIVEREF(__pyx_tuple__8);
1079410809
10795 /* "pygame_sdl2/display.pyx":648
10810 /* "pygame_sdl2/display.pyx":650
1079610811 *
1079710812 * if not isinstance(hint, bytes):
1079810813 * hint = hint.encode("utf-8") # <<<<<<<<<<<<<<
1079910814 *
1080010815 * if not isinstance(value, bytes):
1080110816 */
10802 __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_u_utf_8); if (unlikely(!__pyx_tuple__10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10817 __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_u_utf_8); if (unlikely(!__pyx_tuple__10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1080310818 __Pyx_GOTREF(__pyx_tuple__10);
1080410819 __Pyx_GIVEREF(__pyx_tuple__10);
1080510820
10806 /* "pygame_sdl2/display.pyx":651
10821 /* "pygame_sdl2/display.pyx":653
1080710822 *
1080810823 * if not isinstance(value, bytes):
1080910824 * value = value.encode("utf-8") # <<<<<<<<<<<<<<
1081010825 *
1081110826 * SDL_SetHint(hint, value)
1081210827 */
10813 __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_u_utf_8); if (unlikely(!__pyx_tuple__11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10828 __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_u_utf_8); if (unlikely(!__pyx_tuple__11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1081410829 __Pyx_GOTREF(__pyx_tuple__11);
1081510830 __Pyx_GIVEREF(__pyx_tuple__11);
1081610831
1092510940 __Pyx_GIVEREF(__pyx_tuple__25);
1092610941 __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_init_2, 425, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__26)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1092710942
10928 /* "pygame_sdl2/display.pyx":482
10943 /* "pygame_sdl2/display.pyx":484
1092910944 * self.blit_sw_A = False
1093010945 *
1093110946 * def __repr__(self): # <<<<<<<<<<<<<<
1093210947 * return "<Info({!r})>".format(self.__dict__)
1093310948 *
1093410949 */
10935 __pyx_tuple__27 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__27)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10950 __pyx_tuple__27 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__27)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1093610951 __Pyx_GOTREF(__pyx_tuple__27);
1093710952 __Pyx_GIVEREF(__pyx_tuple__27);
10938 __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_repr, 482, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10939
10940 /* "pygame_sdl2/display.pyx":486
10953 __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_repr, 484, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10954
10955 /* "pygame_sdl2/display.pyx":488
1094110956 *
1094210957 *
1094310958 * def get_wm_info(): # <<<<<<<<<<<<<<
1094410959 * if main_window:
1094510960 * return main_window.get_wm_info()
1094610961 */
10947 __pyx_codeobj__29 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_wm_info, 486, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__29)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10948
10949 /* "pygame_sdl2/display.pyx":493
10962 __pyx_codeobj__29 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_wm_info, 488, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__29)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10963
10964 /* "pygame_sdl2/display.pyx":495
1095010965 *
1095110966 *
1095210967 * def get_num_video_displays(): # <<<<<<<<<<<<<<
1095310968 * """
1095410969 * Returns the number of video displays connected to the system.
1095510970 */
10956 __pyx_tuple__30 = PyTuple_Pack(1, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__30)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10971 __pyx_tuple__30 = PyTuple_Pack(1, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__30)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1095710972 __Pyx_GOTREF(__pyx_tuple__30);
1095810973 __Pyx_GIVEREF(__pyx_tuple__30);
10959 __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__30, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_num_video_displays, 493, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10960
10961 /* "pygame_sdl2/display.pyx":506
10974 __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__30, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_num_video_displays, 495, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10975
10976 /* "pygame_sdl2/display.pyx":508
1096210977 *
1096310978 *
1096410979 * def list_modes(depth=0, flags=0, display=0): # <<<<<<<<<<<<<<
1096510980 * """
1096610981 * Returns a list of possible display modes for the display `display`.
1096710982 */
10968 __pyx_tuple__32 = PyTuple_Pack(8, __pyx_n_s_depth, __pyx_n_s_flags, __pyx_n_s_display, __pyx_n_s_num_modes, __pyx_n_s_i, __pyx_n_s_mode, __pyx_n_s_rv, __pyx_n_s_t); if (unlikely(!__pyx_tuple__32)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10983 __pyx_tuple__32 = PyTuple_Pack(8, __pyx_n_s_depth, __pyx_n_s_flags, __pyx_n_s_display, __pyx_n_s_num_modes, __pyx_n_s_i, __pyx_n_s_mode, __pyx_n_s_rv, __pyx_n_s_t); if (unlikely(!__pyx_tuple__32)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1096910984 __Pyx_GOTREF(__pyx_tuple__32);
1097010985 __Pyx_GIVEREF(__pyx_tuple__32);
10971 __pyx_codeobj__33 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__32, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_list_modes, 506, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10972
10973 /* "pygame_sdl2/display.pyx":531
10986 __pyx_codeobj__33 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__32, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_list_modes, 508, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10987
10988 /* "pygame_sdl2/display.pyx":533
1097410989 *
1097510990 *
1097610991 * def mode_ok(size, flags=0, depth=0): # <<<<<<<<<<<<<<
1097710992 * """
1097810993 * Returns true if size is in the result of list_modes().
1097910994 */
10980 __pyx_tuple__34 = PyTuple_Pack(3, __pyx_n_s_size, __pyx_n_s_flags, __pyx_n_s_depth); if (unlikely(!__pyx_tuple__34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10995 __pyx_tuple__34 = PyTuple_Pack(3, __pyx_n_s_size, __pyx_n_s_flags, __pyx_n_s_depth); if (unlikely(!__pyx_tuple__34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1098110996 __Pyx_GOTREF(__pyx_tuple__34);
1098210997 __Pyx_GIVEREF(__pyx_tuple__34);
10983 __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__34, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_mode_ok, 531, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10984
10985 /* "pygame_sdl2/display.pyx":538
10998 __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__34, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_mode_ok, 533, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10999
11000 /* "pygame_sdl2/display.pyx":540
1098611001 * return tuple(size) in list_modes()
1098711002 *
1098811003 * def gl_reset_attributes(): # <<<<<<<<<<<<<<
1098911004 * SDL_GL_ResetAttributes()
1099011005 *
1099111006 */
10992 __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_reset_attributes, 538, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10993
10994 /* "pygame_sdl2/display.pyx":541
11007 __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_reset_attributes, 540, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11008
11009 /* "pygame_sdl2/display.pyx":543
1099511010 * SDL_GL_ResetAttributes()
1099611011 *
1099711012 * def gl_set_attribute(flag, value): # <<<<<<<<<<<<<<
1099811013 *
1099911014 * if flag == GL_SWAP_CONTROL:
1100011015 */
11001 __pyx_tuple__37 = PyTuple_Pack(3, __pyx_n_s_flag, __pyx_n_s_value, __pyx_n_s_default_swap_control); if (unlikely(!__pyx_tuple__37)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11016 __pyx_tuple__37 = PyTuple_Pack(3, __pyx_n_s_flag, __pyx_n_s_value, __pyx_n_s_default_swap_control); if (unlikely(!__pyx_tuple__37)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1100211017 __Pyx_GOTREF(__pyx_tuple__37);
1100311018 __Pyx_GIVEREF(__pyx_tuple__37);
11004 __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_set_attribute, 541, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11005
11006 /* "pygame_sdl2/display.pyx":559
11019 __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_set_attribute, 543, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11020
11021 /* "pygame_sdl2/display.pyx":561
1100711022 * raise error()
1100811023 *
1100911024 * def gl_get_attribute(flag): # <<<<<<<<<<<<<<
1101011025 * cdef int rv
1101111026 *
1101211027 */
11013 __pyx_tuple__39 = PyTuple_Pack(2, __pyx_n_s_flag, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__39)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11028 __pyx_tuple__39 = PyTuple_Pack(2, __pyx_n_s_flag, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__39)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1101411029 __Pyx_GOTREF(__pyx_tuple__39);
1101511030 __Pyx_GIVEREF(__pyx_tuple__39);
11016 __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_get_attribute, 559, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11017
11018 /* "pygame_sdl2/display.pyx":570
11031 __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_get_attribute, 561, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11032
11033 /* "pygame_sdl2/display.pyx":572
1101911034 * return rv
1102011035 *
1102111036 * def gl_load_library(path): # <<<<<<<<<<<<<<
1102211037 * if path is None:
1102311038 * if SDL_GL_LoadLibrary(NULL):
1102411039 */
11025 __pyx_tuple__41 = PyTuple_Pack(1, __pyx_n_s_path); if (unlikely(!__pyx_tuple__41)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11040 __pyx_tuple__41 = PyTuple_Pack(1, __pyx_n_s_path); if (unlikely(!__pyx_tuple__41)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1102611041 __Pyx_GOTREF(__pyx_tuple__41);
1102711042 __Pyx_GIVEREF(__pyx_tuple__41);
11028 __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_load_library, 570, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11029
11030 /* "pygame_sdl2/display.pyx":578
11043 __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_load_library, 572, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11044
11045 /* "pygame_sdl2/display.pyx":580
1103111046 * raise error()
1103211047 *
1103311048 * def gl_unload_library(): # <<<<<<<<<<<<<<
1103411049 * SDL_GL_UnloadLibrary()
1103511050 *
1103611051 */
11037 __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_unload_library, 578, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__43)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11038
11039 /* "pygame_sdl2/display.pyx":581
11052 __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_gl_unload_library, 580, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__43)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11053
11054 /* "pygame_sdl2/display.pyx":583
1104011055 * SDL_GL_UnloadLibrary()
1104111056 *
1104211057 * def get_active(): # <<<<<<<<<<<<<<
1104311058 * if main_window:
1104411059 * return main_window.get_active()
1104511060 */
11046 __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_active, 581, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__44)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11047
11048 /* "pygame_sdl2/display.pyx":586
11061 __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_active, 583, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__44)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11062
11063 /* "pygame_sdl2/display.pyx":588
1104911064 * return False
1105011065 *
1105111066 * def iconify(): # <<<<<<<<<<<<<<
1105211067 * if main_window:
1105311068 * return main_window.iconify()
1105411069 */
11055 __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_iconify, 586, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__45)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11056
11057 /* "pygame_sdl2/display.pyx":592
11070 __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_iconify, 588, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__45)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11071
11072 /* "pygame_sdl2/display.pyx":594
1105811073 * return False
1105911074 *
1106011075 * def toggle_fullscreen(): # <<<<<<<<<<<<<<
1106111076 * if main_window:
1106211077 * return main_window.toggle_fullscreen()
1106311078 */
11064 __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_toggle_fullscreen, 592, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11065
11066 /* "pygame_sdl2/display.pyx":598
11079 __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_toggle_fullscreen, 594, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11080
11081 /* "pygame_sdl2/display.pyx":600
1106711082 * return True
1106811083 *
1106911084 * def set_gamma(red, green=None, blue=None): # <<<<<<<<<<<<<<
1107011085 * if main_window:
1107111086 * return main_window.set_gamma(red, green, blue)
1107211087 */
11073 __pyx_tuple__47 = PyTuple_Pack(3, __pyx_n_s_red, __pyx_n_s_green, __pyx_n_s_blue); if (unlikely(!__pyx_tuple__47)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11088 __pyx_tuple__47 = PyTuple_Pack(3, __pyx_n_s_red, __pyx_n_s_green, __pyx_n_s_blue); if (unlikely(!__pyx_tuple__47)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1107411089 __Pyx_GOTREF(__pyx_tuple__47);
1107511090 __Pyx_GIVEREF(__pyx_tuple__47);
11076 __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_gamma, 598, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11077
11078 /* "pygame_sdl2/display.pyx":603
11091 __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_gamma, 600, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11092
11093 /* "pygame_sdl2/display.pyx":605
1107911094 * return False
1108011095 *
1108111096 * def set_gamma_ramp(red, green, blue): # <<<<<<<<<<<<<<
1108211097 * if main_window:
1108311098 * return main_window.set_gamma_ramp(red, green, blue)
1108411099 */
11085 __pyx_tuple__49 = PyTuple_Pack(3, __pyx_n_s_red, __pyx_n_s_green, __pyx_n_s_blue); if (unlikely(!__pyx_tuple__49)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11100 __pyx_tuple__49 = PyTuple_Pack(3, __pyx_n_s_red, __pyx_n_s_green, __pyx_n_s_blue); if (unlikely(!__pyx_tuple__49)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1108611101 __Pyx_GOTREF(__pyx_tuple__49);
1108711102 __Pyx_GIVEREF(__pyx_tuple__49);
11088 __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_gamma_ramp, 603, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11089
11090 /* "pygame_sdl2/display.pyx":608
11103 __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_gamma_ramp, 605, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11104
11105 /* "pygame_sdl2/display.pyx":610
1109111106 * return False
1109211107 *
1109311108 * def set_icon(surface): # <<<<<<<<<<<<<<
1109411109 * global default_icon
1109511110 *
1109611111 */
11097 __pyx_tuple__51 = PyTuple_Pack(1, __pyx_n_s_surface); if (unlikely(!__pyx_tuple__51)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11112 __pyx_tuple__51 = PyTuple_Pack(1, __pyx_n_s_surface); if (unlikely(!__pyx_tuple__51)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1109811113 __Pyx_GOTREF(__pyx_tuple__51);
1109911114 __Pyx_GIVEREF(__pyx_tuple__51);
11100 __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_icon, 608, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11101
11102 /* "pygame_sdl2/display.pyx":616
11115 __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_icon, 610, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11116
11117 /* "pygame_sdl2/display.pyx":618
1110311118 * main_window.set_icon(default_icon)
1110411119 *
1110511120 * def set_caption(title, icontitle = None): # <<<<<<<<<<<<<<
1110611121 * global default_title
1110711122 *
1110811123 */
11109 __pyx_tuple__53 = PyTuple_Pack(2, __pyx_n_s_title, __pyx_n_s_icontitle); if (unlikely(!__pyx_tuple__53)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11124 __pyx_tuple__53 = PyTuple_Pack(2, __pyx_n_s_title, __pyx_n_s_icontitle); if (unlikely(!__pyx_tuple__53)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1111011125 __Pyx_GOTREF(__pyx_tuple__53);
1111111126 __Pyx_GIVEREF(__pyx_tuple__53);
11112 __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__53, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_caption, 616, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__54)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11113
11114 /* "pygame_sdl2/display.pyx":624
11127 __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__53, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_set_caption, 618, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__54)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11128
11129 /* "pygame_sdl2/display.pyx":626
1111511130 * main_window.set_caption(default_title)
1111611131 *
1111711132 * def get_caption(): # <<<<<<<<<<<<<<
1111811133 * return default_title
1111911134 *
1112011135 */
11121 __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_caption, 624, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11122
11123 /* "pygame_sdl2/display.pyx":627
11136 __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_caption, 626, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11137
11138 /* "pygame_sdl2/display.pyx":629
1112411139 * return default_title
1112511140 *
1112611141 * def get_drawable_size(): # <<<<<<<<<<<<<<
1112711142 * if main_window:
1112811143 * return main_window.get_drawable_size()
1112911144 */
11130 __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_drawable_size, 627, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11131
11132 /* "pygame_sdl2/display.pyx":632
11145 __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_drawable_size, 629, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11146
11147 /* "pygame_sdl2/display.pyx":634
1113311148 * return None
1113411149 *
1113511150 * def get_num_video_displays(): # <<<<<<<<<<<<<<
1113611151 * rv = SDL_GetNumVideoDisplays()
1113711152 * if rv < 0:
1113811153 */
11139 __pyx_tuple__57 = PyTuple_Pack(1, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__57)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11154 __pyx_tuple__57 = PyTuple_Pack(1, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__57)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1114011155 __Pyx_GOTREF(__pyx_tuple__57);
1114111156 __Pyx_GIVEREF(__pyx_tuple__57);
11142 __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_num_video_displays, 632, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__58)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11143
11144 /* "pygame_sdl2/display.pyx":639
11157 __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_num_video_displays, 634, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__58)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11158
11159 /* "pygame_sdl2/display.pyx":641
1114511160 * return rv
1114611161 *
1114711162 * def get_display_bounds(index): # <<<<<<<<<<<<<<
1114811163 * cdef SDL_Rect rect
1114911164 * rv = SDL_GetDisplayBounds(index, &rect)
1115011165 */
11151 __pyx_tuple__59 = PyTuple_Pack(3, __pyx_n_s_index, __pyx_n_s_rect, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__59)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11166 __pyx_tuple__59 = PyTuple_Pack(3, __pyx_n_s_index, __pyx_n_s_rect, __pyx_n_s_rv); if (unlikely(!__pyx_tuple__59)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1115211167 __Pyx_GOTREF(__pyx_tuple__59);
1115311168 __Pyx_GIVEREF(__pyx_tuple__59);
11154 __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__59, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_display_bounds, 639, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__60)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11155
11156 /* "pygame_sdl2/display.pyx":645
11169 __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__59, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_display_bounds, 641, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__60)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11170
11171 /* "pygame_sdl2/display.pyx":647
1115711172 * return (rect.x, rect.y, rect.w, rect.h)
1115811173 *
1115911174 * def hint(hint, value): # <<<<<<<<<<<<<<
1116011175 *
1116111176 * if not isinstance(hint, bytes):
1116211177 */
11163 __pyx_tuple__61 = PyTuple_Pack(2, __pyx_n_s_hint, __pyx_n_s_value); if (unlikely(!__pyx_tuple__61)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11178 __pyx_tuple__61 = PyTuple_Pack(2, __pyx_n_s_hint, __pyx_n_s_value); if (unlikely(!__pyx_tuple__61)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1116411179 __Pyx_GOTREF(__pyx_tuple__61);
1116511180 __Pyx_GIVEREF(__pyx_tuple__61);
11166 __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__61, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_hint, 645, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__62)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11167
11168 /* "pygame_sdl2/display.pyx":655
11181 __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__61, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_hint, 647, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__62)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11182
11183 /* "pygame_sdl2/display.pyx":657
1116911184 * SDL_SetHint(hint, value)
1117011185 *
1117111186 * def get_platform(): # <<<<<<<<<<<<<<
1117211187 * return SDL_GetPlatform()
1117311188 *
1117411189 */
11175 __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_platform, 655, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11190 __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_tom_ab_pygame_sdl2_src_pyg, __pyx_n_s_get_platform, 657, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1117611191 __Pyx_RefNannyFinishContext();
1117711192 return 0;
1117811193 __pyx_L1_error:;
1173111746 if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_init_2, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1173211747 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
1173311748
11734 /* "pygame_sdl2/display.pyx":482
11749 /* "pygame_sdl2/display.pyx":484
1173511750 * self.blit_sw_A = False
1173611751 *
1173711752 * def __repr__(self): # <<<<<<<<<<<<<<
1173811753 * return "<Info({!r})>".format(self.__dict__)
1173911754 *
1174011755 */
11741 __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_4Info_3__repr__, 0, __pyx_n_s_Info___repr, NULL, __pyx_n_s_pygame_sdl2_display, __pyx_d, ((PyObject *)__pyx_codeobj__28)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11756 __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_4Info_3__repr__, 0, __pyx_n_s_Info___repr, NULL, __pyx_n_s_pygame_sdl2_display, __pyx_d, ((PyObject *)__pyx_codeobj__28)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1174211757 __Pyx_GOTREF(__pyx_t_5);
11743 if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_repr, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11758 if (PyObject_SetItem(__pyx_t_6, __pyx_n_s_repr, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1174411759 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
1174511760
1174611761 /* "pygame_sdl2/display.pyx":423
1175811773 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
1175911774 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1176011775
11761 /* "pygame_sdl2/display.pyx":486
11776 /* "pygame_sdl2/display.pyx":488
1176211777 *
1176311778 *
1176411779 * def get_wm_info(): # <<<<<<<<<<<<<<
1176511780 * if main_window:
1176611781 * return main_window.get_wm_info()
1176711782 */
11768 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_21get_wm_info, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11783 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_21get_wm_info, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1176911784 __Pyx_GOTREF(__pyx_t_3);
11770 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_wm_info, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11785 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_wm_info, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1177111786 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1177211787
11773 /* "pygame_sdl2/display.pyx":493
11788 /* "pygame_sdl2/display.pyx":495
1177411789 *
1177511790 *
1177611791 * def get_num_video_displays(): # <<<<<<<<<<<<<<
1177711792 * """
1177811793 * Returns the number of video displays connected to the system.
1177911794 */
11780 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_23get_num_video_displays, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11795 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_23get_num_video_displays, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1178111796 __Pyx_GOTREF(__pyx_t_3);
11782 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_num_video_displays, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11797 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_num_video_displays, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1178311798 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1178411799
11785 /* "pygame_sdl2/display.pyx":506
11800 /* "pygame_sdl2/display.pyx":508
1178611801 *
1178711802 *
1178811803 * def list_modes(depth=0, flags=0, display=0): # <<<<<<<<<<<<<<
1178911804 * """
1179011805 * Returns a list of possible display modes for the display `display`.
1179111806 */
11792 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_25list_modes, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11807 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_25list_modes, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1179311808 __Pyx_GOTREF(__pyx_t_3);
11794 if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_modes, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11809 if (PyDict_SetItem(__pyx_d, __pyx_n_s_list_modes, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1179511810 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1179611811
11797 /* "pygame_sdl2/display.pyx":531
11812 /* "pygame_sdl2/display.pyx":533
1179811813 *
1179911814 *
1180011815 * def mode_ok(size, flags=0, depth=0): # <<<<<<<<<<<<<<
1180111816 * """
1180211817 * Returns true if size is in the result of list_modes().
1180311818 */
11804 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_27mode_ok, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11819 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_27mode_ok, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1180511820 __Pyx_GOTREF(__pyx_t_3);
11806 if (PyDict_SetItem(__pyx_d, __pyx_n_s_mode_ok, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11821 if (PyDict_SetItem(__pyx_d, __pyx_n_s_mode_ok, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1180711822 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1180811823
11809 /* "pygame_sdl2/display.pyx":538
11824 /* "pygame_sdl2/display.pyx":540
1181011825 * return tuple(size) in list_modes()
1181111826 *
1181211827 * def gl_reset_attributes(): # <<<<<<<<<<<<<<
1181311828 * SDL_GL_ResetAttributes()
1181411829 *
1181511830 */
11816 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_29gl_reset_attributes, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11831 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_29gl_reset_attributes, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1181711832 __Pyx_GOTREF(__pyx_t_3);
11818 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_reset_attributes, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11833 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_reset_attributes, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1181911834 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1182011835
11821 /* "pygame_sdl2/display.pyx":541
11836 /* "pygame_sdl2/display.pyx":543
1182211837 * SDL_GL_ResetAttributes()
1182311838 *
1182411839 * def gl_set_attribute(flag, value): # <<<<<<<<<<<<<<
1182511840 *
1182611841 * if flag == GL_SWAP_CONTROL:
1182711842 */
11828 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_31gl_set_attribute, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11843 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_31gl_set_attribute, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1182911844 __Pyx_GOTREF(__pyx_t_3);
11830 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_set_attribute, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11845 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_set_attribute, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1183111846 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1183211847
11833 /* "pygame_sdl2/display.pyx":559
11848 /* "pygame_sdl2/display.pyx":561
1183411849 * raise error()
1183511850 *
1183611851 * def gl_get_attribute(flag): # <<<<<<<<<<<<<<
1183711852 * cdef int rv
1183811853 *
1183911854 */
11840 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_33gl_get_attribute, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11855 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_33gl_get_attribute, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1184111856 __Pyx_GOTREF(__pyx_t_3);
11842 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_get_attribute, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11857 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_get_attribute, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1184311858 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1184411859
11845 /* "pygame_sdl2/display.pyx":570
11860 /* "pygame_sdl2/display.pyx":572
1184611861 * return rv
1184711862 *
1184811863 * def gl_load_library(path): # <<<<<<<<<<<<<<
1184911864 * if path is None:
1185011865 * if SDL_GL_LoadLibrary(NULL):
1185111866 */
11852 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_35gl_load_library, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11867 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_35gl_load_library, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1185311868 __Pyx_GOTREF(__pyx_t_3);
11854 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_load_library, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11869 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_load_library, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1185511870 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1185611871
11857 /* "pygame_sdl2/display.pyx":578
11872 /* "pygame_sdl2/display.pyx":580
1185811873 * raise error()
1185911874 *
1186011875 * def gl_unload_library(): # <<<<<<<<<<<<<<
1186111876 * SDL_GL_UnloadLibrary()
1186211877 *
1186311878 */
11864 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_37gl_unload_library, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11879 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_37gl_unload_library, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1186511880 __Pyx_GOTREF(__pyx_t_3);
11866 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_unload_library, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11881 if (PyDict_SetItem(__pyx_d, __pyx_n_s_gl_unload_library, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1186711882 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1186811883
11869 /* "pygame_sdl2/display.pyx":581
11884 /* "pygame_sdl2/display.pyx":583
1187011885 * SDL_GL_UnloadLibrary()
1187111886 *
1187211887 * def get_active(): # <<<<<<<<<<<<<<
1187311888 * if main_window:
1187411889 * return main_window.get_active()
1187511890 */
11876 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_39get_active, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11891 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_39get_active, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1187711892 __Pyx_GOTREF(__pyx_t_3);
11878 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_active, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11893 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_active, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1187911894 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1188011895
11881 /* "pygame_sdl2/display.pyx":586
11896 /* "pygame_sdl2/display.pyx":588
1188211897 * return False
1188311898 *
1188411899 * def iconify(): # <<<<<<<<<<<<<<
1188511900 * if main_window:
1188611901 * return main_window.iconify()
1188711902 */
11888 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_41iconify, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11903 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_41iconify, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1188911904 __Pyx_GOTREF(__pyx_t_3);
11890 if (PyDict_SetItem(__pyx_d, __pyx_n_s_iconify, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11905 if (PyDict_SetItem(__pyx_d, __pyx_n_s_iconify, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1189111906 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1189211907
11893 /* "pygame_sdl2/display.pyx":592
11908 /* "pygame_sdl2/display.pyx":594
1189411909 * return False
1189511910 *
1189611911 * def toggle_fullscreen(): # <<<<<<<<<<<<<<
1189711912 * if main_window:
1189811913 * return main_window.toggle_fullscreen()
1189911914 */
11900 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_43toggle_fullscreen, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11915 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_43toggle_fullscreen, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1190111916 __Pyx_GOTREF(__pyx_t_3);
11902 if (PyDict_SetItem(__pyx_d, __pyx_n_s_toggle_fullscreen, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11917 if (PyDict_SetItem(__pyx_d, __pyx_n_s_toggle_fullscreen, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1190311918 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1190411919
11905 /* "pygame_sdl2/display.pyx":598
11920 /* "pygame_sdl2/display.pyx":600
1190611921 * return True
1190711922 *
1190811923 * def set_gamma(red, green=None, blue=None): # <<<<<<<<<<<<<<
1190911924 * if main_window:
1191011925 * return main_window.set_gamma(red, green, blue)
1191111926 */
11912 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_45set_gamma, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11927 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_45set_gamma, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1191311928 __Pyx_GOTREF(__pyx_t_3);
11914 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_gamma, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11929 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_gamma, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1191511930 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1191611931
11917 /* "pygame_sdl2/display.pyx":603
11932 /* "pygame_sdl2/display.pyx":605
1191811933 * return False
1191911934 *
1192011935 * def set_gamma_ramp(red, green, blue): # <<<<<<<<<<<<<<
1192111936 * if main_window:
1192211937 * return main_window.set_gamma_ramp(red, green, blue)
1192311938 */
11924 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_47set_gamma_ramp, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11939 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_47set_gamma_ramp, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1192511940 __Pyx_GOTREF(__pyx_t_3);
11926 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_gamma_ramp, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11941 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_gamma_ramp, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1192711942 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1192811943
11929 /* "pygame_sdl2/display.pyx":608
11944 /* "pygame_sdl2/display.pyx":610
1193011945 * return False
1193111946 *
1193211947 * def set_icon(surface): # <<<<<<<<<<<<<<
1193311948 * global default_icon
1193411949 *
1193511950 */
11936 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_49set_icon, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11951 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_49set_icon, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1193711952 __Pyx_GOTREF(__pyx_t_3);
11938 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_icon, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11953 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_icon, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1193911954 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1194011955
11941 /* "pygame_sdl2/display.pyx":616
11956 /* "pygame_sdl2/display.pyx":618
1194211957 * main_window.set_icon(default_icon)
1194311958 *
1194411959 * def set_caption(title, icontitle = None): # <<<<<<<<<<<<<<
1194511960 * global default_title
1194611961 *
1194711962 */
11948 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_51set_caption, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11963 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_51set_caption, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1194911964 __Pyx_GOTREF(__pyx_t_3);
11950 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_caption, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11965 if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_caption, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1195111966 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1195211967
11953 /* "pygame_sdl2/display.pyx":624
11968 /* "pygame_sdl2/display.pyx":626
1195411969 * main_window.set_caption(default_title)
1195511970 *
1195611971 * def get_caption(): # <<<<<<<<<<<<<<
1195711972 * return default_title
1195811973 *
1195911974 */
11960 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_53get_caption, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11975 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_53get_caption, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1196111976 __Pyx_GOTREF(__pyx_t_3);
11962 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_caption, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11977 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_caption, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1196311978 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1196411979
11965 /* "pygame_sdl2/display.pyx":627
11980 /* "pygame_sdl2/display.pyx":629
1196611981 * return default_title
1196711982 *
1196811983 * def get_drawable_size(): # <<<<<<<<<<<<<<
1196911984 * if main_window:
1197011985 * return main_window.get_drawable_size()
1197111986 */
11972 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_55get_drawable_size, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11987 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_55get_drawable_size, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1197311988 __Pyx_GOTREF(__pyx_t_3);
11974 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_drawable_size, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11989 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_drawable_size, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1197511990 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1197611991
11977 /* "pygame_sdl2/display.pyx":632
11992 /* "pygame_sdl2/display.pyx":634
1197811993 * return None
1197911994 *
1198011995 * def get_num_video_displays(): # <<<<<<<<<<<<<<
1198111996 * rv = SDL_GetNumVideoDisplays()
1198211997 * if rv < 0:
1198311998 */
11984 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_57get_num_video_displays, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11999 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_57get_num_video_displays, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1198512000 __Pyx_GOTREF(__pyx_t_3);
11986 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_num_video_displays, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12001 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_num_video_displays, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1198712002 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1198812003
11989 /* "pygame_sdl2/display.pyx":639
12004 /* "pygame_sdl2/display.pyx":641
1199012005 * return rv
1199112006 *
1199212007 * def get_display_bounds(index): # <<<<<<<<<<<<<<
1199312008 * cdef SDL_Rect rect
1199412009 * rv = SDL_GetDisplayBounds(index, &rect)
1199512010 */
11996 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_59get_display_bounds, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12011 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_59get_display_bounds, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1199712012 __Pyx_GOTREF(__pyx_t_3);
11998 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_display_bounds, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12013 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_display_bounds, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1199912014 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1200012015
12001 /* "pygame_sdl2/display.pyx":645
12016 /* "pygame_sdl2/display.pyx":647
1200212017 * return (rect.x, rect.y, rect.w, rect.h)
1200312018 *
1200412019 * def hint(hint, value): # <<<<<<<<<<<<<<
1200512020 *
1200612021 * if not isinstance(hint, bytes):
1200712022 */
12008 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_61hint, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12023 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_61hint, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1200912024 __Pyx_GOTREF(__pyx_t_3);
12010 if (PyDict_SetItem(__pyx_d, __pyx_n_s_hint, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12025 if (PyDict_SetItem(__pyx_d, __pyx_n_s_hint, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1201112026 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1201212027
12013 /* "pygame_sdl2/display.pyx":655
12028 /* "pygame_sdl2/display.pyx":657
1201412029 * SDL_SetHint(hint, value)
1201512030 *
1201612031 * def get_platform(): # <<<<<<<<<<<<<<
1201712032 * return SDL_GetPlatform()
1201812033 *
1201912034 */
12020 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_63get_platform, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12035 __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_11pygame_sdl2_7display_63get_platform, NULL, __pyx_n_s_pygame_sdl2_display); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1202112036 __Pyx_GOTREF(__pyx_t_3);
12022 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_platform, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12037 if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_platform, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1202312038 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1202412039
1202512040 /* "pygame_sdl2/display.pyx":1
00 Metadata-Version: 1.0
11 Name: pygame-sdl2
2 Version: 2.1.0-for-renpy-6.99.10
2 Version: 2.1.0-for-renpy-6.99.11
33 Summary: UNKNOWN
44 Home-page: https://github.com/renpy/pygame_sdl2
55 Author: Tom Rothamel
00 [egg_info]
1 tag_build = -for-renpy-6.99.10
1 tag_build = -for-renpy-6.99.11
22 tag_date = 0
33 tag_svn_revision = 0
44
465465 self.current_w = dm.w
466466 self.current_h = dm.h
467467
468 self.refresh_rate = dm.refresh_rate
469
468470 # The rest of these are just guesses.
469471 self.hw = False
470472 self.wm = True