From 44dfc72d78028151effc723b2388e6cd9e5da1bf Mon Sep 17 00:00:00 2001 From: Elias Batek Date: Wed, 24 Apr 2024 22:25:52 +0200 Subject: [PATCH] Cleanup --- pixmappaint.d | 11 ++++++++--- pixmappresenter.d | 1 - 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pixmappaint.d b/pixmappaint.d index a4eb1e6..07b1c63 100644 --- a/pixmappaint.d +++ b/pixmappaint.d @@ -8,18 +8,23 @@ module arsd.pixmappaint; import arsd.color; import arsd.core; -/// -alias Pixel = Color; +alias Color = arsd.color.Color; /// alias ColorF = arsd.color.ColorF; /// -alias Size = arsd.color.Size; +alias Pixel = Color; /// alias Point = arsd.color.Point; +/// +alias Rectangle = arsd.color.Rectangle; + +/// +alias Size = arsd.color.Size; + // verify assumption(s) static assert(Pixel.sizeof == uint.sizeof); diff --git a/pixmappresenter.d b/pixmappresenter.d index 8949637..15f87fa 100644 --- a/pixmappresenter.d +++ b/pixmappresenter.d @@ -87,7 +87,6 @@ --- import arsd.pixmappresenter; - import arsd.simpledisplay : MouseEvent; int main() { // Internal resolution of the images (“frames”) we will render.