[Scummvm-cvs-logs] SF.net SVN: scummvm:[44651] scummvm/trunk/engines/sci/gui

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Oct 5 09:38:05 CEST 2009


Revision: 44651
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44651&view=rev
Author:   thebluegr
Date:     2009-10-05 07:38:05 +0000 (Mon, 05 Oct 2009)

Log Message:
-----------
More method renaming

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gui/gui.cpp
    scummvm/trunk/engines/sci/gui/gui_font.cpp
    scummvm/trunk/engines/sci/gui/gui_gfx.cpp
    scummvm/trunk/engines/sci/gui/gui_picture.cpp
    scummvm/trunk/engines/sci/gui/gui_screen.cpp
    scummvm/trunk/engines/sci/gui/gui_screen.h
    scummvm/trunk/engines/sci/gui/gui_view.cpp

Modified: scummvm/trunk/engines/sci/gui/gui.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui.cpp	2009-10-05 07:25:18 UTC (rev 44650)
+++ scummvm/trunk/engines/sci/gui/gui.cpp	2009-10-05 07:38:05 UTC (rev 44651)
@@ -213,7 +213,7 @@
 	currport->curTop = tTop;
 	currport->curLeft = tLeft;
 
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 }
 
 void SciGui::textSize(const char *text, int16 font, int16 maxWidth, int16 *textWidth, int16 *textHeight) {
@@ -243,7 +243,7 @@
 		_gfx->drawPicture(pictureId, style, addToFlag, EGApaletteNo);
 		_windowMgr->EndUpdate(_windowMgr->_picWind);
 	}
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 
 	_gfx->SetPort(oldPort);
 	_gfx->_picNotValid = true;
@@ -252,7 +252,7 @@
 void SciGui::drawCel(GuiResourceId viewId, GuiViewLoopNo loopNo, GuiViewCelNo celNo, uint16 leftPos, uint16 topPos, int16 priority, uint16 paletteNo) {
 	_gfx->drawCel(viewId, loopNo, celNo, leftPos, topPos, priority, paletteNo);
 	_gfx->SetCLUT(&_gfx->_sysPalette);
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 }
 
 void SciGui::drawControlButton(Common::Rect rect, reg_t obj, const char *text, int16 fontId, int16 style, bool inverse) {
@@ -267,7 +267,7 @@
 		rect.grow(1);
 		_gfx->FrameRect(rect);
 	}
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 }
 
 void SciGui::drawControlText(Common::Rect rect, reg_t obj, const char *text, int16 fontId, int16 mode, int16 style, bool inverse) {
@@ -278,27 +278,27 @@
 	if (style & 8) { // selected
 		_gfx->FrameRect(rect);
 	}
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 }
 
 void SciGui::graphFillBoxForeground(Common::Rect rect) {
 	_gfx->PaintRect(rect);
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 }
 
 void SciGui::graphFillBoxBackground(Common::Rect rect) {
 	_gfx->EraseRect(rect);
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 }
 
 void SciGui::graphFillBox(Common::Rect rect, uint16 colorMask, int16 color, int16 priority, int16 control) {
 	_gfx->FillRect(rect, colorMask, color, priority, control);
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 }
 
 void SciGui::graphDrawLine(Common::Rect rect, int16 color, int16 priority, int16 control) {
 	_gfx->Draw_Line(rect.left, rect.top, rect.right, rect.bottom, color, priority, control);
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 }
 
 reg_t SciGui::graphSaveBox(Common::Rect rect, uint16 flags) {
@@ -307,7 +307,7 @@
 
 void SciGui::graphRestoreBox(reg_t handle) {
 	_gfx->RestoreBits(handle);
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 }
 
 void SciGui::paletteSet(int resourceNo, int flags) {
@@ -377,7 +377,7 @@
 	}
 
 	//_gfx->AnimateUpdateScreen();
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 	_gfx->AnimateRestoreAndDelete();
 
 	_gfx->SetPort(oldPort);

Modified: scummvm/trunk/engines/sci/gui/gui_font.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_font.cpp	2009-10-05 07:25:18 UTC (rev 44650)
+++ scummvm/trunk/engines/sci/gui/gui_font.cpp	2009-10-05 07:38:05 UTC (rev 44651)
@@ -86,7 +86,7 @@
 			if ((done & 7) == 0) // fetching next data byte
 				b = *(pIn++) & mask;
 			if (b & 0x80) // if MSB is set - paint it
-				screen->Put_Pixel(left + done, y, 1, color, 0, 0);
+				screen->putPixel(left + done, y, 1, color, 0, 0);
 			b = b << 1;
 		}
 	}

Modified: scummvm/trunk/engines/sci/gui/gui_gfx.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_gfx.cpp	2009-10-05 07:25:18 UTC (rev 44650)
+++ scummvm/trunk/engines/sci/gui/gui_gfx.cpp	2009-10-05 07:38:05 UTC (rev 44651)
@@ -433,18 +433,18 @@
 		if (oldPenMode == 2) { // invert mode
 			for (y = r.top; y < r.bottom; y++) {
 				for (x = r.left; x < r.right; x++) {
-					curVisual = _screen->Get_Visual(x, y);
+					curVisual = _screen->getVisual(x, y);
 					if (curVisual == clrPen) {
-						_screen->Put_Pixel(x, y, 1, clrBack, 0, 0);
+						_screen->putPixel(x, y, 1, clrBack, 0, 0);
 					} else if (curVisual == clrBack) {
-						_screen->Put_Pixel(x, y, 1, clrPen, 0, 0);
+						_screen->putPixel(x, y, 1, clrPen, 0, 0);
 					}
 				}
 			}
 		} else { // just fill rect with ClrPen
 			for (y = r.top; y < r.bottom; y++) {
 				for (x = r.left; x < r.right; x++) {
-					_screen->Put_Pixel(x, y, 1, clrPen, 0, 0);
+					_screen->putPixel(x, y, 1, clrPen, 0, 0);
 				}
 			}
 		}
@@ -457,13 +457,13 @@
 	if (oldPenMode != 2) {
 		for (y = r.top; y < r.bottom; y++) {
 			for (x = r.left; x < r.right; x++) {
-				_screen->Put_Pixel(x, y, drawFlags, 0, clrBack, bControl);
+				_screen->putPixel(x, y, drawFlags, 0, clrBack, bControl);
 			}
 		}
 	} else {
 		for (y = r.top; y < r.bottom; y++) {
 			for (x = r.left; x < r.right; x++) {
-				_screen->Put_Pixel(x, y, drawFlags, 0, !_screen->Get_Priority(x, y), !_screen->Get_Control(x, y));
+				_screen->putPixel(x, y, drawFlags, 0, !_screen->getPriority(x, y), !_screen->getControl(x, y));
 			}
 		}
 	}
@@ -832,7 +832,7 @@
 
 	OffsetRect(rect);
 	assert((flags&0x8000) == 0);
-	_screen->UpdateWhole();
+	_screen->updateScreen();
 //	_system->copyRectToScreen(GetSegment(flags) + _baseTable[rect.top] + rect.left, 320, rect.left, rect.top, rect.width(), rect.height());
 //	_system->updateScreen();
 }
@@ -850,11 +850,11 @@
 	OffsetRect(r); //local port coords to screen coords
 
 	// now actually ask _screen how much space it will need for saving
-	size = _screen->BitsGetDataSize(r, screenMask);
+	size = _screen->getBitsDataSize(r, screenMask);
 
 	memoryId = kalloc(_s->_segMan, "SaveBits()", size);
 	memoryPtr = kmem(_s->_segMan, memoryId);
-	_screen->BitsSave(r, screenMask, memoryPtr);
+	_screen->saveBits(r, screenMask, memoryPtr);
 	return memoryId;
 }
 
@@ -862,14 +862,14 @@
 	byte *memoryPtr = kmem(_s->_segMan, memoryHandle);;
 
 	if (memoryPtr) {
-		_screen->BitsRestore(memoryPtr);
+		_screen->restoreBits(memoryPtr);
 		kfree(_s->_segMan, memoryHandle);
 	}
 }
 
 void SciGuiGfx::Draw_Line(int16 left, int16 top, int16 right, int16 bottom, byte color, byte prio, byte control) {
 	//set_drawing_flag
-	byte flag = _screen->GetDrawingMask(color, prio, control);
+	byte flag = _screen->getDrawingMask(color, prio, control);
 	prio &= 0xF0;
 	control &= 0x0F;
 
@@ -897,8 +897,8 @@
 	dx = ABS(dx) << 1;
 
 	// setting the 1st and last pixel
-	_screen->Put_Pixel(left, top, flag, color, prio, control);
-	_screen->Put_Pixel(right, bottom, flag, color, prio, control);
+	_screen->putPixel(left, top, flag, color, prio, control);
+	_screen->putPixel(right, bottom, flag, color, prio, control);
 	// drawing the line
 	if (dx > dy) // going horizontal
 	{
@@ -910,7 +910,7 @@
 			}
 			left += stepx;
 			fraction += dy;
-			_screen->Put_Pixel(left, top, flag, color, prio, control);
+			_screen->putPixel(left, top, flag, color, prio, control);
 		}
 	} else // going vertical
 	{
@@ -922,7 +922,7 @@
 			}
 			top += stepy;
 			fraction += dx;
-			_screen->Put_Pixel(left, top, flag, color, prio, control);
+			_screen->putPixel(left, top, flag, color, prio, control);
 		}
 	}
 	//g_sci->eventMgr->waitUntil(5);
@@ -933,7 +933,7 @@
 	if (right < left)
 		SWAP(right, left);
 	for (int i = left; i <= right; i++)
-		_screen->Put_Pixel(i, top, flag, color, prio, control);
+		_screen->putPixel(i, top, flag, color, prio, control);
 }
 
 //--------------------------------
@@ -941,7 +941,7 @@
 	if (top > bottom)
 		SWAP(top, bottom);
 	for (int i = top; i <= bottom; i++)
-		_screen->Put_Pixel(left, i, flag, color, prio, control);
+		_screen->putPixel(left, i, flag, color, prio, control);
 }
 
 // Bitmap for drawing sierra circles
@@ -1059,25 +1059,25 @@
 };
 
 void SciGuiGfx::Draw_Box(Common::Rect box, byte color, byte prio, byte control) {
-	byte flag = _screen->GetDrawingMask(color, prio, control);
+	byte flag = _screen->getDrawingMask(color, prio, control);
 	int y, x;
 
 	for (y = box.top; y < box.bottom; y++) {
 		for (x = box.left; x < box.right; x++) {
-			_screen->Put_Pixel(x, y, flag, color, prio, control);
+			_screen->putPixel(x, y, flag, color, prio, control);
 		}
 	}
 }
 
 void SciGuiGfx::Draw_TexturedBox(Common::Rect box, byte color, byte prio, byte control, byte texture) {
-	byte flag = _screen->GetDrawingMask(color, prio, control);
+	byte flag = _screen->getDrawingMask(color, prio, control);
 	const bool *textureData = &pattern_Textures[pattern_TextureOffset[texture]];
 	int y, x;
 
 	for (y = box.top; y < box.bottom; y++) {
 		for (x = box.left; x < box.right; x++) {
 			if (*textureData) {
-				_screen->Put_Pixel(x, y, flag, color, prio, control);
+				_screen->putPixel(x, y, flag, color, prio, control);
 			}
 			textureData++;
 		}
@@ -1085,7 +1085,7 @@
 }
 
 void SciGuiGfx::Draw_Circle(Common::Rect box, byte size, byte color, byte prio, byte control) {
-	byte flag = _screen->GetDrawingMask(color, prio, control);
+	byte flag = _screen->getDrawingMask(color, prio, control);
 	byte *circle = (byte *)&pattern_Circles[size];
 	byte circleBitmap;
 	int y, x;
@@ -1094,7 +1094,7 @@
 		circleBitmap = *circle;
 		for (x = box.left; x < box.right; x++) {
 			if (circleBitmap & 1) {
-				_screen->Put_Pixel(x, y, flag, color, prio, control);
+				_screen->putPixel(x, y, flag, color, prio, control);
 			}
 			circleBitmap = circleBitmap >> 1;
 		}
@@ -1103,7 +1103,7 @@
 }
 
 void SciGuiGfx::Draw_TexturedCircle(Common::Rect box, byte size, byte color, byte prio, byte control, byte texture) {
-	byte flag = _screen->GetDrawingMask(color, prio, control);
+	byte flag = _screen->getDrawingMask(color, prio, control);
 	byte *circle = (byte *)&pattern_Circles[size];
 	byte circleBitmap;
 	const bool *textureData = &pattern_Textures[pattern_TextureOffset[texture]];
@@ -1114,7 +1114,7 @@
 		for (x = box.left; x < box.right; x++) {
 			if (circleBitmap & 1) {
 				if (*textureData) {
-					_screen->Put_Pixel(x, y, flag, color, prio, control);
+					_screen->putPixel(x, y, flag, color, prio, control);
 				}
 				textureData++;
 			}
@@ -1157,7 +1157,7 @@
 	Common::Stack<Common::Point> stack;
 	Common::Point p, p1;
 
-	byte flag = _screen->GetDrawingMask(color, prio, control), fmatch;
+	byte flag = _screen->getDrawingMask(color, prio, control), fmatch;
 	p.x = x + _curPort->left;
 	p.y = y + _curPort->top;
 	stack.push(p);
@@ -1166,9 +1166,9 @@
 	if ((flag & 2 && prio == 0) || (flag & 3 && control == 0))
 		return;
 
-	byte t_col = _screen->Get_Visual(p.x, p.y);
-	byte t_pri = _screen->Get_Priority(p.x, p.y);
-	byte t_con = _screen->Get_Control(p.x, p.y);
+	byte t_col = _screen->getVisual(p.x, p.y);
+	byte t_pri = _screen->getPriority(p.x, p.y);
+	byte t_con = _screen->getControl(p.x, p.y);
 	int16 w, e, a_set, b_set;
 	// if in 1st point priority,control or color is already set to target, clear the flag
 	if (!_s->resMan->isVGA()) {
@@ -1194,20 +1194,20 @@
 	int b = _curPort->rect.bottom + _curPort->top - 1;
 	while (stack.size()) {
 		p = stack.pop();
-		if ((fmatch = _screen->IsFillMatch(p.x, p.y, flag, t_col, t_pri, t_con)) == 0) // already filled
+		if ((fmatch = _screen->isFillMatch(p.x, p.y, flag, t_col, t_pri, t_con)) == 0) // already filled
 			continue;
-		_screen->Put_Pixel(p.x, p.y, flag, color, prio, control);
+		_screen->putPixel(p.x, p.y, flag, color, prio, control);
 		w = p.x;
 		e = p.x;
 		// moving west and east pointers as long as there is a matching color to fill
-		while (w > l && (fmatch = _screen->IsFillMatch(w - 1, p.y, flag, t_col, t_pri, t_con)))
-			_screen->Put_Pixel(--w, p.y, fmatch, color, prio, control);
-		while (e < r && (fmatch = _screen->IsFillMatch(e + 1, p.y, flag, t_col, t_pri, t_con)))
-			_screen->Put_Pixel(++e, p.y, fmatch, color, prio, control);
+		while (w > l && (fmatch = _screen->isFillMatch(w - 1, p.y, flag, t_col, t_pri, t_con)))
+			_screen->putPixel(--w, p.y, fmatch, color, prio, control);
+		while (e < r && (fmatch = _screen->isFillMatch(e + 1, p.y, flag, t_col, t_pri, t_con)))
+			_screen->putPixel(++e, p.y, fmatch, color, prio, control);
 		// checking lines above and below for possible flood targets
 		a_set = b_set = 0;
 		while (w <= e) {
-			if (p.y > t && _screen->IsFillMatch(w, p.y - 1, flag, t_col, t_pri, t_con)) { // one line above
+			if (p.y > t && _screen->isFillMatch(w, p.y - 1, flag, t_col, t_pri, t_con)) { // one line above
 				if (a_set == 0) {
 					p1.x = w;
 					p1.y = p.y - 1;
@@ -1217,7 +1217,7 @@
 			} else
 				a_set = 0;
 
-			if (p.y < b && _screen->IsFillMatch(w, p.y + 1, flag, t_col, t_pri, t_con)) { // one line below
+			if (p.y < b && _screen->isFillMatch(w, p.y + 1, flag, t_col, t_pri, t_con)) { // one line below
 				if (b_set == 0) {
 					p1.x = w;
 					p1.y = p.y + 1;
@@ -1310,13 +1310,13 @@
 	if (screenMask & SCI_SCREEN_MASK_PRIORITY) {
 		for (y = outRect.top; y < outRect.bottom; y++) {
 			for (x = outRect.left; x < outRect.right; x++) {
-				result |= 1 << _screen->Get_Priority(x, y);
+				result |= 1 << _screen->getPriority(x, y);
 			}
 		}
 	} else {
 		for (y = outRect.top; y < outRect.bottom; y++) {
 			for (x = outRect.left; x < outRect.right; x++) {
-				result |= 1 << _screen->Get_Control(x, y);
+				result |= 1 << _screen->getControl(x, y);
 			}
 		}
 	}

Modified: scummvm/trunk/engines/sci/gui/gui_picture.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_picture.cpp	2009-10-05 07:25:18 UTC (rev 44650)
+++ scummvm/trunk/engines/sci/gui/gui_picture.cpp	2009-10-05 07:38:05 UTC (rev 44651)
@@ -77,7 +77,7 @@
 	int16 x, y;
 	for (y = _curPort->top; y < _screen->_height; y++) {
 		for (x = 0; x < _screen->_width; x++) {
-			_screen->Put_Pixel(x, y, SCI_SCREEN_MASK_ALL, 255, 0, 0);
+			_screen->putPixel(x, y, SCI_SCREEN_MASK_ALL, 255, 0, 0);
 		}
 	}
 }
@@ -168,8 +168,8 @@
 		switch (b & 0xC0) {
 		case 0: // copy bytes as-is but skip transparent ones
 			while (brun-- && y < lasty && ptr < pend) {
-				if ((b = *ptr++) != clr && priority >= _screen->Get_Priority(x, y)) {
-					_screen->Put_Pixel(x, y, 3, b, priority, 0);
+				if ((b = *ptr++) != clr && priority >= _screen->getPriority(x, y)) {
+					_screen->putPixel(x, y, 3, b, priority, 0);
 				}
 				x++;
 				if (x >= _screen->_width) {
@@ -180,8 +180,8 @@
 		case 0x80: // fill with color
 			b = *ptr++;
 			while (brun-- && y < lasty) {
-				if (priority >= _screen->Get_Priority(x, y)) {
-					_screen->Put_Pixel(x, y, 3, b, priority, 0);
+				if (priority >= _screen->getPriority(x, y)) {
+					_screen->putPixel(x, y, 3, b, priority, 0);
 				}
 				x++;
 				if (x >= _screen->_width) {
@@ -221,8 +221,8 @@
 			bytes = op & 0x07;
 			col = op >> 3;
 			while (bytes-- && y < lasty) {
-				if (priority >= _screen->Get_Priority(x, y)) {
-					_screen->Put_Pixel(x, y, 3, col, priority, 0);
+				if (priority >= _screen->getPriority(x, y)) {
+					_screen->putPixel(x, y, 3, col, priority, 0);
 				}
 				x++;
 				if (x >= _screen->_width) {

Modified: scummvm/trunk/engines/sci/gui/gui_screen.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_screen.cpp	2009-10-05 07:25:18 UTC (rev 44650)
+++ scummvm/trunk/engines/sci/gui/gui_screen.cpp	2009-10-05 07:38:05 UTC (rev 44651)
@@ -49,7 +49,7 @@
 	_height = 200;
 	_pixels = _width * _height;
 
-	// if you want to do scaling, adjust Put_Pixel() accordingly
+	// if you want to do scaling, adjust putPixel() accordingly
 	_displayWidth = 320;
 	_displayHeight = 200;
 	_displayPixels = _displayWidth * _displayHeight;
@@ -72,12 +72,12 @@
 	return screen;
 }
 
-void SciGuiScreen::UpdateWhole() {
+void SciGuiScreen::updateScreen() {
 	_system->copyRectToScreen(_displayScreen, _displayWidth, 0, 0, _displayWidth, _displayHeight);
 	_system->updateScreen();
 }
 
-byte SciGuiScreen::GetDrawingMask(byte color, byte prio, byte control) {
+byte SciGuiScreen::getDrawingMask(byte color, byte prio, byte control) {
 	byte flag = 0;
 	if (color != 255)
 		flag |= SCI_SCREEN_MASK_VISUAL;
@@ -88,7 +88,7 @@
 	return flag;
 }
 
-void SciGuiScreen::Put_Pixel(int x, int y, byte drawMask, byte color, byte priority, byte control) {
+void SciGuiScreen::putPixel(int x, int y, byte drawMask, byte color, byte priority, byte control) {
 	int offset = _baseTable[y] + x;
 
 	if (drawMask & SCI_SCREEN_MASK_VISUAL) {
@@ -105,19 +105,19 @@
 		*(_controlScreen + offset) = control;
 }
 
-byte SciGuiScreen::Get_Visual(int x, int y) {
+byte SciGuiScreen::getVisual(int x, int y) {
 	return _visualScreen[_baseTable[y] + x];
 }
 
-byte SciGuiScreen::Get_Priority(int x, int y) {
+byte SciGuiScreen::getPriority(int x, int y) {
 	return _priorityScreen[_baseTable[y] + x];
 }
 
-byte SciGuiScreen::Get_Control(int x, int y) {
+byte SciGuiScreen::getControl(int x, int y) {
 	return _controlScreen[_baseTable[y] + x];
 }
 
-byte SciGuiScreen::IsFillMatch(int16 x, int16 y, byte flag, byte t_color, byte t_pri, byte t_con) {
+byte SciGuiScreen::isFillMatch(int16 x, int16 y, byte flag, byte t_color, byte t_pri, byte t_con) {
 	int offset = _baseTable[y] + x;
 	byte match = 0;
 
@@ -130,7 +130,7 @@
 	return match;
 }
 
-int SciGuiScreen::BitsGetDataSize(Common::Rect rect, byte mask) {
+int SciGuiScreen::getBitsDataSize(Common::Rect rect, byte mask) {
 	int byteCount = sizeof(rect) + sizeof(mask);
 	int pixels = rect.width() * rect.height();
 	if (mask & SCI_SCREEN_MASK_VISUAL) {
@@ -145,23 +145,23 @@
 	return byteCount;
 }
 
-void SciGuiScreen::BitsSave(Common::Rect rect, byte mask, byte *memoryPtr) {
+void SciGuiScreen::saveBits(Common::Rect rect, byte mask, byte *memoryPtr) {
 	memcpy(memoryPtr, (void *)&rect, sizeof(rect)); memoryPtr += sizeof(rect);
 	memcpy(memoryPtr, (void *)&mask, sizeof(mask)); memoryPtr += sizeof(mask);
 
 	if (mask & SCI_SCREEN_MASK_VISUAL) {
-		BitsSaveScreen(rect, _visualScreen, memoryPtr);
-		BitsSaveScreen(rect, _displayScreen, memoryPtr);
+		saveBitsScreen(rect, _visualScreen, memoryPtr);
+		saveBitsScreen(rect, _displayScreen, memoryPtr);
 	}
 	if (mask & SCI_SCREEN_MASK_PRIORITY) {
-		BitsSaveScreen(rect, _priorityScreen, memoryPtr);
+		saveBitsScreen(rect, _priorityScreen, memoryPtr);
 	}
 	if (mask & SCI_SCREEN_MASK_CONTROL) {
-		BitsSaveScreen(rect, _controlScreen, memoryPtr);
+		saveBitsScreen(rect, _controlScreen, memoryPtr);
 	}
 }
 
-void SciGuiScreen::BitsSaveScreen(Common::Rect rect, byte *screen, byte *&memoryPtr) {
+void SciGuiScreen::saveBitsScreen(Common::Rect rect, byte *screen, byte *&memoryPtr) {
 	int width = rect.width();
 	int y;
 
@@ -173,7 +173,7 @@
 	}
 }
 
-void SciGuiScreen::BitsRestore(byte *memoryPtr) {
+void SciGuiScreen::restoreBits(byte *memoryPtr) {
 	Common::Rect rect;
 	byte mask;
 
@@ -181,18 +181,18 @@
 	memcpy((void *)&mask, memoryPtr, sizeof(mask)); memoryPtr += sizeof(mask);
 
 	if (mask & SCI_SCREEN_MASK_VISUAL) {
-		BitsRestoreScreen(rect, memoryPtr, _visualScreen);
-		BitsRestoreScreen(rect, memoryPtr, _displayScreen);
+		restoreBitsScreen(rect, memoryPtr, _visualScreen);
+		restoreBitsScreen(rect, memoryPtr, _displayScreen);
 	}
 	if (mask & SCI_SCREEN_MASK_PRIORITY) {
-		BitsRestoreScreen(rect, memoryPtr, _priorityScreen);
+		restoreBitsScreen(rect, memoryPtr, _priorityScreen);
 	}
 	if (mask & SCI_SCREEN_MASK_CONTROL) {
-		BitsRestoreScreen(rect, memoryPtr, _controlScreen);
+		restoreBitsScreen(rect, memoryPtr, _controlScreen);
 	}
 }
 
-void SciGuiScreen::BitsRestoreScreen(Common::Rect rect, byte *&memoryPtr, byte *screen) {
+void SciGuiScreen::restoreBitsScreen(Common::Rect rect, byte *&memoryPtr, byte *screen) {
 	int width = rect.width();
 	int y;
 

Modified: scummvm/trunk/engines/sci/gui/gui_screen.h
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_screen.h	2009-10-05 07:25:18 UTC (rev 44650)
+++ scummvm/trunk/engines/sci/gui/gui_screen.h	2009-10-05 07:38:05 UTC (rev 44651)
@@ -46,18 +46,18 @@
 	void init(void);
 	byte *initScreen(uint16 pixelCount);
 
-	void UpdateWhole();
+	void updateScreen();
 
-	byte GetDrawingMask(byte color, byte prio, byte control);
-	void Put_Pixel(int x, int y, byte drawMask, byte color, byte prio, byte control);
-	byte Get_Visual(int x, int y);
-	byte Get_Priority(int x, int y);
-	byte Get_Control(int x, int y);
-	byte IsFillMatch(int16 x, int16 y, byte drawMask, byte t_color, byte t_pri, byte t_con);
+	byte getDrawingMask(byte color, byte prio, byte control);
+	void putPixel(int x, int y, byte drawMask, byte color, byte prio, byte control);
+	byte getVisual(int x, int y);
+	byte getPriority(int x, int y);
+	byte getControl(int x, int y);
+	byte isFillMatch(int16 x, int16 y, byte drawMask, byte t_color, byte t_pri, byte t_con);
 
-	int BitsGetDataSize(Common::Rect rect, byte mask);
-	void BitsSave(Common::Rect rect, byte mask, byte *memoryPtr);
-	void BitsRestore(byte *memoryPtr);
+	int getBitsDataSize(Common::Rect rect, byte mask);
+	void saveBits(Common::Rect rect, byte mask, byte *memoryPtr);
+	void restoreBits(byte *memoryPtr);
 
 	GuiPalette _sysPalette;
 
@@ -70,8 +70,8 @@
 	byte _bytesPerDisplayPixel;
 
 private:
-	void BitsRestoreScreen(Common::Rect rect, byte *&memoryPtr, byte *screen);
-	void BitsSaveScreen(Common::Rect rect, byte *screen, byte *&memoryPtr);
+	void restoreBitsScreen(Common::Rect rect, byte *&memoryPtr, byte *screen);
+	void saveBitsScreen(Common::Rect rect, byte *screen, byte *&memoryPtr);
 
 	OSystem *_system;
 	EngineState *_s;

Modified: scummvm/trunk/engines/sci/gui/gui_view.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_view.cpp	2009-10-05 07:25:18 UTC (rev 44650)
+++ scummvm/trunk/engines/sci/gui/gui_view.cpp	2009-10-05 07:38:05 UTC (rev 44651)
@@ -337,8 +337,8 @@
 	for (y = clipRect.top; y < clipRect.top + height; y++, bitmap += celWidth) {
 		for (x = 0; x < width; x++) {
 			color = bitmap[x];
-			if (color != clearKey && priority >= _screen->Get_Priority(clipRect.left + x, y))
-				_screen->Put_Pixel(clipRect.left + x, y, drawMask, palette->mapping[color], priority, 0);
+			if (color != clearKey && priority >= _screen->getPriority(clipRect.left + x, y))
+				_screen->putPixel(clipRect.left + x, y, drawMask, palette->mapping[color], priority, 0);
 		}
 	}
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list