From 916092153ddfdf157170e1876c20e089235cad4a Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sun, 19 Jul 2026 11:41:42 +0000 Subject: [PATCH 18/71] fix(macos): declare namespace-scope ImageSize alias in the frontend TerminalSession.{h,cpp} used bare `ImageSize` at namespace scope, but the only aliases were class members (SoftwareRenderTarget::ImageSize), not visible there, so GCC reported "'ImageSize' has not been declared". Add a namespace-scope `using ImageSize = vtbackend::ImageSize;` in PixelBuffer.h (included throughout the frontend) so bare ImageSize resolves everywhere. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01AeG2jwYMX5gdvvtUnx3PJa --- src/contour_macos/PixelBuffer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/contour_macos/PixelBuffer.h b/src/contour_macos/PixelBuffer.h index 3a1a9291..37e41ee0 100644 --- a/src/contour_macos/PixelBuffer.h +++ b/src/contour_macos/PixelBuffer.h @@ -11,6 +11,9 @@ namespace contour_macos { +/// Canonical pixel-size type used throughout the frontend. +using ImageSize = vtbackend::ImageSize; + /// A tightly-packed RGBA8 (8 bits per channel, 4 bytes per pixel) pixel buffer with a /// top-left origin: row 0 is the top, byte order is R,G,B,A. This is the storage and /// software-compositing primitive shared by the atlas, whole-image textures, and the