Browse Source

minor stuff

opengl-renderer-broken
Martin Dørum 4 years ago
parent
commit
3f4040720d
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      core.mod/src/entities/EntPlayer.h
  2. 1
    1
      src/main.cc

+ 1
- 1
core.mod/src/entities/EntPlayer.h View File

@@ -14,7 +14,7 @@ public:

EntPlayer(const Swan::Context &ctx, const Swan::SRF &params);

Swan::InventoryTrait::Inventory &getInventory() { return inventory_; }
Swan::InventoryTrait::Inventory &getInventory() override { return inventory_; }

void draw(const Swan::Context &ctx, Swan::Win &win) override;
void update(const Swan::Context &ctx, float dt) override;

+ 1
- 1
src/main.cc View File

@@ -47,7 +47,7 @@ int sdlButtonToImGuiButton(uint8_t button) {
int main(int argc, char **argv) {
uint32_t winflags = SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI;
uint32_t renderflags = SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC;
float gui_scale = 2;
float gui_scale = 1;

for (int i = 1; i < argc; ++i) {
if (strcmp(argv[i], "--lodpi") == 0) {

Loading…
Cancel
Save