Add MSVC project for SDL2 build + SDL2 unicode text input for win32

This commit is contained in:
Thomas Bernard
2019-01-25 12:53:47 +01:00
parent 16080ed4b4
commit 8459266c47
6 changed files with 635 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ static void GFX2_UpdateRect(int x, int y, int width, int height)
SDL_LockTexture(Texture_SDL, &source_rect, (void **)(&pixels), &pitch );
for (line = 0; line < source_rect.h; line++)
{
memcpy(pixels + line * pitch, RGBcopy->pixels + source_rect.x * 4 + (source_rect.y+line)* RGBcopy->pitch, source_rect.w * 4 );
memcpy(pixels + line * pitch, (const byte *)RGBcopy->pixels + source_rect.x * 4 + (source_rect.y+line)* RGBcopy->pitch, source_rect.w * 4 );
}
SDL_UnlockTexture(Texture_SDL);
//SDL_RenderCopy(Renderer_SDL, Texture_SDL, &source_rect, &source_rect);