diff options
| -rw-r--r-- | src/crepe/facade/SDLContext.cpp | 3 | ||||
| -rw-r--r-- | src/example/rendering_particle.cpp | 2 | 
2 files changed, 2 insertions, 3 deletions
| diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp index 9c45089..672d55a 100644 --- a/src/crepe/facade/SDLContext.cpp +++ b/src/crepe/facade/SDLContext.cpp @@ -68,7 +68,6 @@ SDLContext::SDLContext(Mediator & mediator) {  		throw runtime_error(format("SDL_ttf initialization failed: {}", TTF_GetError()));  	} -	SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "2");  	mediator.sdl_context = *this;  } @@ -173,6 +172,7 @@ SDL_FRect SDLContext::get_dst_rect(const DestinationRectangleData & ctx) const {  }  void SDLContext::draw(const RenderContext & ctx) { +	SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "2");  	const Sprite::Data & data = ctx.sprite.data;  	SDL_RendererFlip render_flip  		= (SDL_RendererFlip) ((SDL_FLIP_HORIZONTAL * data.flip.flip_x) @@ -203,6 +203,7 @@ void SDLContext::draw(const RenderContext & ctx) {  }  void SDLContext::draw_text(const RenderText & data) { +	SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "0");  	const Text & text = data.text;  	const Font & font = data.font; diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp index c8db499..5eae00d 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -27,7 +27,6 @@ public:  		Color color(255, 255, 255, 255); -		/*  		Asset img{"asset/texture/square.png"};  		Sprite & test_sprite = game_object.add_component<Sprite>( @@ -50,7 +49,6 @@ public:  														 .position_offset = {0, -1},  														 .world_space = false,  													 }); -		*/  		auto & cam = game_object.add_component<Camera>(ivec2{1280, 720}, vec2{5, 5},  													   Camera::Data{ |