diff options
author | MacDue <macdue@dueutil.tech> | 2022-12-06 21:35:32 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-07 11:48:27 +0100 |
commit | 27fae783359ece05400dcbee66c50fee97cd1b0b (patch) | |
tree | 7918baf077884d287a8dce3ad7ccad9f9d1aaaf0 /Userland/Libraries/LibGPU | |
parent | e011eafd3790ca0375a4678a9cb2debd0ae95ac7 (diff) | |
download | serenity-27fae783359ece05400dcbee66c50fee97cd1b0b.zip |
Meta+Userland: Pass Gfx::IntSize by value
Just two ints like Gfx::IntPoint.
Diffstat (limited to 'Userland/Libraries/LibGPU')
-rw-r--r-- | Userland/Libraries/LibGPU/Device.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGPU/Device.h b/Userland/Libraries/LibGPU/Device.h index 270d44dfc0..7b08f315c5 100644 --- a/Userland/Libraries/LibGPU/Device.h +++ b/Userland/Libraries/LibGPU/Device.h @@ -39,7 +39,7 @@ public: virtual DeviceInfo info() const = 0; virtual void draw_primitives(PrimitiveType, FloatMatrix4x4 const& model_view_transform, FloatMatrix4x4 const& projection_transform, Vector<Vertex>& vertices) = 0; - virtual void resize(Gfx::IntSize const& min_size) = 0; + virtual void resize(Gfx::IntSize min_size) = 0; virtual void clear_color(FloatVector4 const&) = 0; virtual void clear_depth(DepthType) = 0; virtual void clear_stencil(StencilType) = 0; @@ -71,6 +71,6 @@ public: } -typedef GPU::Device* (*serenity_gpu_create_device_t)(Gfx::IntSize const& size); +typedef GPU::Device* (*serenity_gpu_create_device_t)(Gfx::IntSize size); -extern "C" GPU::Device* serenity_gpu_create_device(Gfx::IntSize const& size); +extern "C" GPU::Device* serenity_gpu_create_device(Gfx::IntSize size); |