SDL program freezes
问题 I'm writing a simple program for testing mouse. It compiles fine, but doesn't work. When I launch it, the window freezes. What am I doing wrong? #include <SDL/SDL.h> #undef main int main() { if (SDL_Init (SDL_INIT_EVERYTHING) != 0) return 1; SDL_Surface* Scr; if ((Scr = SDL_SetVideoMode (300, 200, 32, 0)) == 0) return 2; SDL_Rect Mouse1 = {50, 50, 50, 100}; SDL_Rect Mouse3 = {150, 50, 50, 100}; SDL_Rect Mouse2 = {250, 50, 50, 100}; SDL_Surface Colors; SDL_Rect Click = {0, 0, 50, 100}; SDL