Merge pull request #4684 from lioncash/desig4
fermi_2d: Make use of designated initializers
This commit is contained in:
commit
059dd724d6
2 changed files with 8 additions and 8 deletions
|
@ -87,12 +87,12 @@ void Fermi2D::HandleSurfaceCopy() {
|
||||||
const Common::Rectangle<u32> src_rect{src_blit_x1, src_blit_y1, src_blit_x2, src_blit_y2};
|
const Common::Rectangle<u32> src_rect{src_blit_x1, src_blit_y1, src_blit_x2, src_blit_y2};
|
||||||
const Common::Rectangle<u32> dst_rect{regs.blit_dst_x, regs.blit_dst_y, dst_blit_x2,
|
const Common::Rectangle<u32> dst_rect{regs.blit_dst_x, regs.blit_dst_y, dst_blit_x2,
|
||||||
dst_blit_y2};
|
dst_blit_y2};
|
||||||
Config copy_config;
|
const Config copy_config{
|
||||||
copy_config.operation = regs.operation;
|
.operation = regs.operation,
|
||||||
copy_config.filter = regs.blit_control.filter;
|
.filter = regs.blit_control.filter,
|
||||||
copy_config.src_rect = src_rect;
|
.src_rect = src_rect,
|
||||||
copy_config.dst_rect = dst_rect;
|
.dst_rect = dst_rect,
|
||||||
|
};
|
||||||
if (!rasterizer->AccelerateSurfaceCopy(regs.src, regs.dst, copy_config)) {
|
if (!rasterizer->AccelerateSurfaceCopy(regs.src, regs.dst, copy_config)) {
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,8 +145,8 @@ public:
|
||||||
} regs{};
|
} regs{};
|
||||||
|
|
||||||
struct Config {
|
struct Config {
|
||||||
Operation operation;
|
Operation operation{};
|
||||||
Filter filter;
|
Filter filter{};
|
||||||
Common::Rectangle<u32> src_rect;
|
Common::Rectangle<u32> src_rect;
|
||||||
Common::Rectangle<u32> dst_rect;
|
Common::Rectangle<u32> dst_rect;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue