X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=SDL_SetWindowIcon.html;h=5810684fc89def32cbf64316331603e2f08eb052;hb=7c6f4ee8b5224c08b8a522125c5730f12209bcd2;hp=cd2775c6aa6f2dde1aaebbdaf2b31d64bd0d72ca;hpb=576d3554f1ac9cca7b7b306f942e66f1a9cb598d;p=sdl2referencejp%2Fsdl2referencejp.git diff --git a/SDL_SetWindowIcon.html b/SDL_SetWindowIcon.html index cd2775c..5810684 100644 --- a/SDL_SetWindowIcon.html +++ b/SDL_SetWindowIcon.html @@ -15,6 +15,11 @@ EBhEÌACRðÝè·é
void SDL_SetWindowIcon(SDL_Window* window, SDL_Surface* icon)
+window | Ýè·éEBhE |
icon | ACRÌSDL_Surface |
@@ -23,10 +28,12 @@
int main(int argc, char* argv[]){
+ SDL_Event e;
+
SDL_Init(SDL_INIT_VIDEO); // SDL2ðú»·é
SDL_Window *window = SDL_CreateWindow( // Vµ¢EBhEðJ
- "SDL2 window icon demo", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_RESIZABLE
+ "SDL2 EBhEACRf", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_RESIZABLE
);
SDL_Surface *surface; // æt@C©çsNZf[^ð«ÞT[tFCXðé¾·é
@@ -73,7 +80,7 @@ int main(int argc, char* argv[]){
SDL_FreeSurface(surface);
// [UªEBhEð¶é©L[ð·ÜÅ[v·é
- for(SDL_Event e; e.type!=SDL_QUIT&&e.type!=SDL_KEYDOWN; SDL_PollEvent(&e));
+ for( ; e.type!=SDL_QUIT && e.type != SDL_KEYDOWN; SDL_PollEvent(&e));
SDL_DestroyWindow(window); // EBhEð¶Äjü·é
SDL_Quit(); // ãµÄI¹·é
@@ -83,11 +90,6 @@ int main(int argc, char* argv[]){
window | Ýè·éEBhE |
icon | ACRÌSDL_Surface |