renderer: refactor pl_render_target.dst_rect
This is now pl_rect2df instead of pl_rect2d, to make it easier to use the pl_rect2df_aspect* series of functions, especially without requiring the hacky rounding integer versions of them. Delete those and add some needed helper functions as well. Rewrite the fix_rects code to crop `src_rect` for any fractional offset in the `dst_rect`, and also for regions of the `dst_rect` that lie outside the target fbo. Also fix a bug in the img->w/h calculation for cropped planes.
parent
87ccba7d
No related branches found
No related tags found
Showing
- demos/sdl2.c 1 addition, 1 deletiondemos/sdl2.c
- meson.build 1 addition, 1 deletionmeson.build
- src/common.c 22 additions, 41 deletionssrc/common.c
- src/include/libplacebo/common.h 3 additions, 13 deletionssrc/include/libplacebo/common.h
- src/include/libplacebo/renderer.h 6 additions, 1 deletionsrc/include/libplacebo/renderer.h
- src/renderer.c 70 additions, 41 deletionssrc/renderer.c
Loading
Please register or sign in to comment