From 3a1495f2476d72ede060f63d3c6877b046b55980 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 20 Oct 2009 11:13:42 +0000 Subject: [PATCH] AGI: Make scancodeTable const svn-id: r45261 --- engines/agi/keyboard.cpp | 2 +- engines/agi/keyboard.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp index 6f730628167..ea384f3418b 100644 --- a/engines/agi/keyboard.cpp +++ b/engines/agi/keyboard.cpp @@ -38,7 +38,7 @@ namespace Agi { // // IBM-PC keyboard scancodes // -uint8 scancodeTable[26] = { +const uint8 scancodeTable[26] = { 30, // A 48, // B 46, // C diff --git a/engines/agi/keyboard.h b/engines/agi/keyboard.h index bc1706b280e..c4dadb5836a 100644 --- a/engines/agi/keyboard.h +++ b/engines/agi/keyboard.h @@ -93,7 +93,7 @@ public: #define KEY_SCAN(k) (k >> 8) #define KEY_ASCII(k) (k & 0xff) -extern uint8 scancodeTable[]; +extern const uint8 scancodeTable[]; } // End of namespace Agi