Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/libslic3r/SLA/SLARaster.hpp')
-rw-r--r--src/libslic3r/SLA/SLARaster.hpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/libslic3r/SLA/SLARaster.hpp b/src/libslic3r/SLA/SLARaster.hpp
index d3bd52d92..8b27fd153 100644
--- a/src/libslic3r/SLA/SLARaster.hpp
+++ b/src/libslic3r/SLA/SLARaster.hpp
@@ -68,15 +68,14 @@ public:
/// Type that represents a resolution in pixels.
struct Resolution {
- unsigned width_px;
- unsigned height_px;
+ size_t width_px;
+ size_t height_px;
- inline Resolution(unsigned w = 0, unsigned h = 0):
- width_px(w), height_px(h) {}
+ inline Resolution(size_t w = 0, size_t h = 0)
+ : width_px(w), height_px(h)
+ {}
- inline unsigned pixels() const /*noexcept*/ {
- return width_px * height_px;
- }
+ inline size_t pixels() const { return width_px * height_px; }
};
/// Types that represents the dimension of a pixel in millimeters.