From d24c44cd636efd3073ebf93a0687c5a4a7aed932 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 20 Dec 2009 21:30:32 +0000 Subject: [PATCH] framebuffer: make table of circle values static git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@100 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/4a23449c8ed018dec039205205bb9500a7d28d85 Author: Stefan Seyfried Date: 2009-12-20 (Sun, 20 Dec 2009) ------------------ This commit was generated by Migit --- src/driver/framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/framebuffer.cpp b/src/driver/framebuffer.cpp index ca8c5415a..a5470d2e7 100644 --- a/src/driver/framebuffer.cpp +++ b/src/driver/framebuffer.cpp @@ -508,7 +508,7 @@ void CFrameBuffer::paintBoxRel(const int x, const int y, const int dx, const int /* this table contains the x coordinates for a quarter circle (the bottom right quarter) with fixed radius of 540 px which is the half of the max HD graphics size of 1080 px. So with that table we ca draw boxes with round corners and als circles by just setting dx = dy = radius (max 540). */ - int q_circle[541] = { + static const int q_circle[541] = { 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 540, 539, 539, 539, 539, 539, 539, 539, 539, 539, 539, 539, 539, 539, 539, 539, 539, 539, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 538, 537, 537, 537, 537, 537, 537, 537,