@@ -2743,6 +2743,8 @@ static void UpdateLogicalPresentation(SDL_Renderer *renderer)
2743
2743
view -> pixel_h = (int ) view -> logical_dst_rect .h ;
2744
2744
UpdatePixelViewport (renderer , view );
2745
2745
UpdatePixelClipRect (renderer , view );
2746
+ QueueCmdSetViewport (renderer );
2747
+ QueueCmdSetClipRect (renderer );
2746
2748
}
2747
2749
2748
2750
bool SDL_SetRenderLogicalPresentation (SDL_Renderer * renderer , int w , int h , SDL_RendererLogicalPresentation mode )
@@ -3663,7 +3665,7 @@ bool SDL_RenderLines(SDL_Renderer *renderer, const SDL_FPoint *points, int count
3663
3665
#endif
3664
3666
3665
3667
SDL_RenderViewState * view = renderer -> view ;
3666
- const bool islogical = (( view == & renderer -> main_view ) && ( view -> logical_presentation_mode != SDL_LOGICAL_PRESENTATION_DISABLED ) );
3668
+ const bool islogical = (view -> logical_presentation_mode != SDL_LOGICAL_PRESENTATION_DISABLED );
3667
3669
3668
3670
if (islogical || (renderer -> line_method == SDL_RENDERLINEMETHOD_GEOMETRY )) {
3669
3671
const float scale_x = view -> current_scale .x ;
@@ -3682,7 +3684,7 @@ bool SDL_RenderLines(SDL_Renderer *renderer, const SDL_FPoint *points, int count
3682
3684
int num_indices = 0 ;
3683
3685
const int size_indices = 4 ;
3684
3686
int cur_index = -4 ;
3685
- const int is_looping = (points [0 ].x == points [count - 1 ].x && points [0 ].y == points [count - 1 ].y );
3687
+ const bool is_looping = (points [0 ].x == points [count - 1 ].x && points [0 ].y == points [count - 1 ].y );
3686
3688
SDL_FPoint p ; // previous point
3687
3689
p .x = p .y = 0.0f ;
3688
3690
/* p q
@@ -3714,7 +3716,7 @@ bool SDL_RenderLines(SDL_Renderer *renderer, const SDL_FPoint *points, int count
3714
3716
num_indices += 3;
3715
3717
3716
3718
// closed polyline, don´t draw twice the point
3717
- if (i || is_looping == 0 ) {
3719
+ if (i || ! is_looping ) {
3718
3720
ADD_TRIANGLE (4 , 5 , 6 )
3719
3721
ADD_TRIANGLE (4 , 6 , 7 )
3720
3722
}
0 commit comments