OSDN Git Service

SDL_Rect サンプルコードを修正 コピー先のwとhは無視されるため0とした https://github.com/libsdl-org/sdlwiki/commit... master
authormaruhiro <maruhiro@bridge.ocn.ne.jp>
Sun, 24 Sep 2023 08:35:37 +0000 (17:35 +0900)
committermaruhiro <maruhiro@bridge.ocn.ne.jp>
Sun, 24 Sep 2023 08:35:37 +0000 (17:35 +0900)
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, &amp;srcrect, dst, &amp;dstrect);\r
 </pre>\r