• R/O
  • HTTP
  • SSH
  • HTTPS

Deeangband-new: 提交

Deeangbandのフルスクラッチ新ソースコード。
BSD系ライセンスを採用予定。


Commit MetaInfo

修訂4af6efbadb2570e7cb21384292556602f8ea0a17 (tree)
時間2015-02-26 23:31:51
作者Deskull <desull@user...>
CommiterDeskull

Log Message

不要な描画処理をコメントアウト / Comment out unnecessary processing for drawing.

Change Summary

差異

--- a/Deeangband/GameSurfaceSDL.cpp
+++ b/Deeangband/GameSurfaceSDL.cpp
@@ -207,7 +207,7 @@ namespace Deeangband
207207 SDL_FreeSurface(symbolSurface);
208208
209209 floorTextures.insert(std::map<TAG, SDL_Texture*>::value_type(floorIt->first, SDL_CreateTextureFromSurface(renderer, surface)));
210- }
210+ }
211211
212212 SDL_GetWindowSurface(this->window);
213213 this->windowSurface = SDL_GetWindowSurface(this->window);
@@ -602,7 +602,7 @@ void GameSurfaceSDL::drawField(const CREATURE_IT &subjectCreatureIt, GameWorld *
602602 SDL_Rect symbolRect = {0, 0, squareGraphicWidth, squareGraphicHeight};
603603 CREATURE_IT creatureIt;
604604 Creature *subJectCreaturePtr = subjectCreatureIt->second.get();
605-
605+
606606 MAP_LENGTH fx = this->focusPoint.GetX();
607607 MAP_LENGTH fy = this->focusPoint.GetY();
608608
@@ -635,10 +635,12 @@ void GameSurfaceSDL::drawField(const CREATURE_IT &subjectCreatureIt, GameWorld *
635635 {
636636 SDL_Rect blitRect = {(px - x) * squareGraphicWidth - sx, (py - y) * squareGraphicHeight - sy, squareGraphicWidth, squareGraphicHeight};
637637
638+ /*
638639 SDL_Rect checkRect1 = {(px - x) * squareGraphicWidth - sx - 2 + 12, 30 + (py - y) * squareGraphicHeight - 2 - sy + 12, 4, 4};
639640 SDL_Rect checkRect2 = {(px - x) * squareGraphicWidth - sx - 2, 30 + (py - y) * squareGraphicHeight - 2 - sy , 4, 4};
640641 SDL_Rect checkRect3 = {(px - x) * squareGraphicWidth - sx - 6 + 12, 30 + (py - y) * squareGraphicHeight - 1 - sy , 12, 2};
641642 SDL_Rect checkRect4 = {(px - x) * squareGraphicWidth - sx - 1, 30 + (py - y) * squareGraphicHeight - 6 + 12 - sy , 2, 12};
643+ */
642644
643645 if(subJectCreaturePtr->InSight(px, py))
644646 {
@@ -661,7 +663,6 @@ void GameSurfaceSDL::drawField(const CREATURE_IT &subjectCreatureIt, GameWorld *
661663 SDL_SetRenderDrawColor(this->renderer, 255, 255, 255, 255);
662664 else
663665 SDL_SetRenderDrawColor(this->renderer, 255, 0, 0, 255);
664- */
665666 SDL_RenderFillRect(this->renderer, &checkRect1);
666667
667668 if(fieldPtr->GetSightPass(px * 2, py * 2))
@@ -678,6 +679,8 @@ void GameSurfaceSDL::drawField(const CREATURE_IT &subjectCreatureIt, GameWorld *
678679 SDL_FillRect(windowSurface, &checkRect4, SDL_MapRGBA(windowSurface->format, 255, 255, 255, 255));
679680 else
680681 SDL_FillRect(windowSurface, &checkRect4, SDL_MapRGBA(windowSurface->format, 255, 0, 0, 255));
682+ */
683+
681684 }
682685 }
683686 }
@@ -722,8 +725,6 @@ void GameSurfaceSDL::drawField(const CREATURE_IT &subjectCreatureIt, GameWorld *
722725 {
723726 SDL_Rect messageRect = {0, 0, 200, 200};
724727 SDL_Rect messagePositon = {220, 180, 420, 380};
725- //SDL_Rect windowRect = {210, 170, 420, 220};
726- //SDL_FillRect(windowSurface, &windowRect, SDL_MapRGBA(systemMessageSurface->format, 0, 0, 0, 120));
727728 SDL_RenderCopy(renderer, systemMessageTexture, &messageRect, &messagePositon);
728729 }
729730
Show on old repository browser