aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2011-08-17 10:55:49 +0200
committerAlyssa Milburn2011-08-17 10:55:49 +0200
commit23689cac23fcbe205f28434ddbb4a686feda4dea (patch)
tree2718bc2629928191102dfbc0b62fb07e56c00d10
parenta9f002897ea344d8851d66a9a3fa27dd3d457fa7 (diff)
downloadscummvm-rg350-23689cac23fcbe205f28434ddbb4a686feda4dea.tar.gz
scummvm-rg350-23689cac23fcbe205f28434ddbb4a686feda4dea.tar.bz2
scummvm-rg350-23689cac23fcbe205f28434ddbb4a686feda4dea.zip
CGE: Remove unused Rgb/Trgb/mkRgb.
-rw-r--r--engines/cge/vga13h.cpp10
-rw-r--r--engines/cge/vga13h.h15
2 files changed, 0 insertions, 25 deletions
diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp
index 51be2ed1e8..9b063f0c02 100644
--- a/engines/cge/vga13h.cpp
+++ b/engines/cge/vga13h.cpp
@@ -118,16 +118,6 @@ Dac mkDac(uint8 r, uint8 g, uint8 b) {
return x;
}
-
-Rgb mkRgb(uint8 r, uint8 g, uint8 b) {
- static Trgb x;
- x._dac._r = r;
- x._dac._g = g;
- x._dac._b = b;
- return x._rgb;
-}
-
-
Sprite *locate(int ref) {
Sprite *spr = _vga->_showQ->locate(ref);
return (spr) ? spr : _vga->_spareQ->locate(ref);
diff --git a/engines/cge/vga13h.h b/engines/cge/vga13h.h
index db75b48692..d43e590084 100644
--- a/engines/cge/vga13h.h
+++ b/engines/cge/vga13h.h
@@ -65,20 +65,6 @@ namespace CGE {
#define SPR_EXT ".SPR"
-struct Rgb {
- uint16 _r : 2;
- uint16 _R : 6;
- uint16 _g : 2;
- uint16 _G : 6;
- uint16 _b : 2;
- uint16 _B : 6;
-};
-
-typedef union {
- Dac _dac;
- Rgb _rgb;
-} Trgb;
-
struct VgaRegBlk {
uint8 _idx;
uint8 _adr;
@@ -299,7 +285,6 @@ public:
Dac mkDac(uint8 r, uint8 g, uint8 b);
-Rgb mkRgb(uint8 r, uint8 g, uint8 b);
template <class CBLK>