this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Moved GetVirtualResolution implementation into SDL_gpu.c and out of the renderer impl.

+9 -19
-3
include/SDL_gpu_RendererImpl.h
··· 42 42 43 43 /*! \see GPU_SetVirtualResolution() */ 44 44 void (SDLCALL *SetVirtualResolution)(GPU_Renderer* renderer, GPU_Target* target, Uint16 w, Uint16 h); 45 - 46 - /*! \see GPU_GetVirtualResolution() */ 47 - void (SDLCALL *GetVirtualResolution)(GPU_Target* target, Uint16* w, Uint16* h); 48 45 49 46 /*! \see GPU_UnsetVirtualResolution() */ 50 47 void (SDLCALL *UnsetVirtualResolution)(GPU_Renderer* renderer, GPU_Target* target);
+9 -3
src/SDL_gpu.c
··· 539 539 540 540 void GPU_GetVirtualResolution(GPU_Target* target, Uint16* w, Uint16* h) 541 541 { 542 + // No checking here for NULL w or h... Should we? 542 543 if (target == NULL) 543 - RETURN_ERROR(GPU_ERROR_USER_ERROR, "NULL target"); 544 - 545 - _gpu_current_renderer->impl->GetVirtualResolution(target, w, h); 544 + { 545 + *w = 0; 546 + *h = 0; 547 + } 548 + else { 549 + *w = target->w; 550 + *h = target->h; 551 + } 546 552 } 547 553 548 554 void GPU_SetVirtualResolution(GPU_Target* target, Uint16 w, Uint16 h)
-13
src/renderer_GL_common.inl
··· 1727 1727 return 1; 1728 1728 } 1729 1729 1730 - static void GetVirtualResolution(GPU_Target* target, Uint16* w, Uint16* h) 1731 - { 1732 - if (target == NULL) 1733 - { 1734 - *w = 0; 1735 - *h = 0; 1736 - } 1737 - else { 1738 - *w = target->w; 1739 - *h = target->h; 1740 - } 1741 - } 1742 - 1743 1730 static void SetVirtualResolution(GPU_Renderer* renderer, GPU_Target* target, Uint16 w, Uint16 h) 1744 1731 { 1745 1732 Uint8 isCurrent;