OSDN Git Service

SDL_Rect サンプルコードを修正 コピー先のwとhは無視されるため0とした https://github.com/libsdl-org/sdlwiki/commit...
[sdl2referencejp/sdl2referencejp.git] / SDL_Rect.html
index 9a68d80..4fed1b1 100644 (file)
@@ -33,8 +33,8 @@ srcrect.w = 32;
 srcrect.h = 32;\r
 dstrect.x = 640/2;\r
 dstrect.y = 480/2;\r
-dstrect.w = 32;\r
-dstrect.h = 32;\r
+dstrect.w = 0;\r
+dstrect.h = 0;\r
 \r
 SDL_BlitSurface(src, &srcrect, dst, &dstrect);\r
 </pre>\r