Commit 58770212 authored by Sam Lantinga's avatar Sam Lantinga

More of the Direct3D renderer is implemented, I'm not sure why it's not...

More of the Direct3D renderer is implemented, I'm not sure why it's not showing texture copies yet...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401948
parent 38e7a926
......@@ -416,7 +416,7 @@ extern DECLSPEC size_t SDLCALL SDL_strlen(const char *string);
#ifdef HAVE_WCSLEN
#define SDL_wcslen wcslen
#else
extern DECLSPEC size_t SDLCALL SDL_wcslen(const wchar_t *string);
extern DECLSPEC size_t SDLCALL SDL_wcslen(const wchar_t * string);
#endif
#ifdef HAVE_STRLCPY
......
......@@ -497,7 +497,7 @@ SDL_OpenAudio(SDL_AudioSpec * desired, SDL_AudioSpec * obtained)
if (desired->channels == 0) {
env = SDL_getenv("SDL_AUDIO_CHANNELS");
if (env) {
desired->channels = (Uint8)SDL_atoi(env);
desired->channels = (Uint8) SDL_atoi(env);
}
}
if (desired->channels == 0) {
......@@ -517,7 +517,7 @@ SDL_OpenAudio(SDL_AudioSpec * desired, SDL_AudioSpec * obtained)
if (desired->samples == 0) {
env = SDL_getenv("SDL_AUDIO_SAMPLES");
if (env) {
desired->samples = (Uint16)SDL_atoi(env);
desired->samples = (Uint16) SDL_atoi(env);
}
}
if (desired->samples == 0) {
......
......@@ -338,7 +338,7 @@ SDL_strlen(const char *string)
#ifndef HAVE_WCSLEN
size_t
SDL_wcslen(const wchar_t *string)
SDL_wcslen(const wchar_t * string)
{
size_t len = 0;
while (*string++) {
......
This diff is collapsed.
......@@ -5,7 +5,7 @@
#include "SDL.h"
#define NUM_WINDOWS 4
#define NUM_WINDOWS 1
#define WINDOW_W 640
#define WINDOW_H 480
#define NUM_SPRITES 100
......@@ -91,10 +91,13 @@ MoveSprites(SDL_WindowID window, SDL_TextureID sprite)
/* Move the sprite, bounce at the wall, and draw */
n = 0;
SDL_RenderFill(NULL, BACKGROUND);
/*
for (i = 0; i < num_sprites; ++i) {
position = &positions[i];
SDL_RenderFill(position, BACKGROUND);
}
*/
for (i = 0; i < num_sprites; ++i) {
position = &positions[i];
velocity = &velocities[i];
......@@ -237,7 +240,8 @@ main(int argc, char *argv[])
}
break;
case SDL_KEYDOWN:
/* Any keypress quits the app... */
///* Any keypress quits the app... */
break;
case SDL_QUIT:
done = 1;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment