Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Post-merge issues.
  • Loading branch information
skyjake committed Jul 16, 2020
1 parent fc0f8fb commit 9f58782
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 22 deletions.
2 changes: 0 additions & 2 deletions doomsday/libs/core/include/de/core/matrix.h
Expand Up @@ -504,8 +504,6 @@ typedef Matrix4<dfloat> Mat4f;
typedef Matrix4<ddouble> Mat4d;
///@}

using Mat4f = Matrix4f;

} // namespace de

#endif // LIBCORE_MATRIX_H
8 changes: 4 additions & 4 deletions doomsday/libs/gamekit/libs/common/src/common.cpp
Expand Up @@ -229,7 +229,7 @@ static de::Value *Function_Game_SetMessage(de::Context &, const de::Function::Ar
return nullptr;
}

static de::Value *Function_Game_Rules(de::Context &, const de::Function::ArgumentValues &args)
static de::Value *Function_Game_Rules(de::Context &, const de::Function::ArgumentValues &)
{
return new de::RecordValue(gfw_Session()->rules().asRecord());
}
Expand Down Expand Up @@ -379,7 +379,7 @@ void Common_Load()
setMessageArgs["player"] = new NoneValue;

gameBindings->init(*gameModule)
<< DE_FUNC_DEFS(Game_SetMessage, "setMessage", "message" << "player", setMessageArgs);
<< DE_FUNC_DEFS(Game_SetMessage, "setMessage", "message" << "player", setMessageArgs)
<< DE_FUNC_NOARG(Game_Rules, "rules");

#if defined(__JHEXEN__)
Expand Down Expand Up @@ -439,7 +439,7 @@ void Common_Load()
gameBindings->init(playerClass)
<< DE_FUNC_NOARG (Player_Health, "health")
<< DE_FUNC (Player_Power, "power", "type")
<< DE_FUNC_NOARG (Player_ShotAmmo, "shotAmmo");
<< DE_FUNC_NOARG (Player_ShotAmmo, "shotAmmo")
<< DE_FUNC (Player_GiveArmor, "giveArmor", "type" << "points");

#if defined(HAVE_DOOM_ARMOR_BINDINGS)
Expand All @@ -452,7 +452,7 @@ void Common_Load()
Function::Defaults setLocalQuakeArgs;
setLocalQuakeArgs["duration"] = new NumberValue(0);
*gameBindings
<< DENG2_FUNC_DEFS (Player_SetLocalQuake, "setLocalQuake", "intensity" << "duration", setLocalQuakeArgs);
<< DE_FUNC_DEFS (Player_SetLocalQuake, "setLocalQuake", "intensity" << "duration", setLocalQuakeArgs);
#endif

#if defined(__JHERETIC__)
Expand Down
4 changes: 2 additions & 2 deletions doomsday/libs/gamekit/libs/heretic/include/doomdef.h
Expand Up @@ -274,7 +274,7 @@ void *G_GetVariable(int id);

#define DEFAULT_PLAYER_VIEWHEIGHT (41)

DENG_EXTERN_C int localQuakeHappening[MAXPLAYERS];
DENG_EXTERN_C int localQuakeTimeout[MAXPLAYERS];
DE_EXTERN_C int localQuakeHappening[MAXPLAYERS];
DE_EXTERN_C int localQuakeTimeout[MAXPLAYERS];

#endif /* LIBHERETIC_DEFS_H */
2 changes: 1 addition & 1 deletion doomsday/libs/gamekit/libs/heretic/src/h_main.cpp
Expand Up @@ -26,7 +26,7 @@
#include <de/App>
#include <de/CommandLine>
#include <de/Function>
#include <de/NumberValue>>
#include <de/NumberValue>
#include "d_netsv.h"
#include "g_defs.h"
#include "gamesession.h"
Expand Down
14 changes: 7 additions & 7 deletions doomsday/libs/gamekit/libs/heretic/src/intermission.cpp
Expand Up @@ -793,21 +793,21 @@ static void drawStats()
}
}

if (bgMaterial.startsWith("Flats:") || bgMaterial.startsWith("flats:"))
if (bgMaterial.beginsWith("Flats:") || bgMaterial.beginsWith("flats:"))
{
// Draw a background flat.
DGL_SetMaterialUI(
(world_Material *) P_ToPtr(DMU_MATERIAL, Materials_ResolveUriCString(bgMaterial)),
DGL_REPEAT,
DGL_REPEAT);
DGL_Enable(DGL_TEXTURE_2D);
DGL_Color4f(1, 1, 1, 1);
DGL_DrawRectf2Tiled(0, 0, SCREENWIDTH, SCREENHEIGHT, 64, 64);
DGL_Disable(DGL_TEXTURE_2D);
DGL_Enable(DGL_TEXTURE_2D);
DGL_Color4f(1, 1, 1, 1);
DGL_DrawRectf2Tiled(0, 0, SCREENWIDTH, SCREENHEIGHT, 64, 64);
DGL_Disable(DGL_TEXTURE_2D);
}
else if (bgMaterial.startsWith("Patches:") || bgMaterial.startsWith("patches:"))
else if (bgMaterial.beginsWith("Patches:") || bgMaterial.beginsWith("patches:"))
{
drawBackground(R_DeclarePatch(bgMaterial.constData() + strlen("Patches:")));
drawBackground(R_DeclarePatch(bgMaterial.c_str() + strlen("Patches:")));
}

switch (gameType)
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libs/gamekit/libs/hexen/include/h2def.h
Expand Up @@ -368,7 +368,7 @@ DE_EXTERN_C dd_bool modifiedgame;
#define MAX_PLAYER_STARTS (8)

DE_EXTERN_C int localQuakeHappening[MAXPLAYERS];
DENG_EXTERN_C int localQuakeTimeout[MAXPLAYERS]; // zero for unlimited
DE_EXTERN_C int localQuakeTimeout[MAXPLAYERS]; // zero for unlimited

#ifdef __cplusplus
extern "C" {
Expand Down
1 change: 1 addition & 0 deletions doomsday/libs/gui/CMakeLists.txt
Expand Up @@ -38,6 +38,7 @@ deng_merge_sources (text src/text/*.cpp)
deng_merge_sources (vr src/vr/*.cpp)
deng_merge_sources (widgets src/widgets/*.cpp)

list (FILTER SOURCES EXCLUDE REGEX ".*/filedialog_.*")
if (DE_X11 OR RASPBERRYPI)
list (APPEND SOURCES src/dialogs/filedialog_generic.cpp)
else ()
Expand Down
6 changes: 3 additions & 3 deletions doomsday/libs/gui/src/graphics/gltextureframebuffer.cpp
Expand Up @@ -123,19 +123,19 @@ DE_PIMPL(GLTextureFramebuffer)
if (isMultisampled())
{
self().configure(size, ColorDepthStencil, sampleCount());
resolvedFbo.configure(color[0].texture.get(), &depthStencil);
resolvedFbo.configure(color[0].texture.get(), &depthStencil, &depthStencil);
}
else
{
try
{
if (color.size() == 1)
{
self().configure(color[0].texture.get(), &depthStencil);
self().configure(color[0].texture.get(), &depthStencil, &depthStencil);
}
else
{
self().configure(colorAttachments(), &depthStencil);
self().configure(colorAttachments(), &depthStencil, &depthStencil);
}
resolvedFbo.setState(NotReady);
}
Expand Down
4 changes: 2 additions & 2 deletions doomsday/libs/gui/src/windoweventhandler.cpp
Expand Up @@ -474,12 +474,12 @@ void WindowEventHandler::setKeyboardMode(KeyboardMode kbMode)
d->keyboardMode = kbMode;
if (kbMode == TextInput)
{
LOG_INPUT_MSG("Keyboard mode changed to text input");
LOGDEV_INPUT_VERBOSE("Keyboard mode changed to text input");
SDL_StartTextInput();
}
else
{
LOG_INPUT_MSG("Keyboard mode changed to raw key events");
LOGDEV_INPUT_VERBOSE("Keyboard mode changed to raw key events");
SDL_StopTextInput();
}
}
Expand Down

0 comments on commit 9f58782

Please sign in to comment.