Skip to content

Commit

Permalink
Delete os.h and move definition of g_fake_lut from video.cpp to unixs…
Browse files Browse the repository at this point in the history
…cr.cpp
  • Loading branch information
LegalizeAdulthood committed Jan 13, 2025
1 parent 6afc26a commit 42ea120
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 14 deletions.
1 change: 0 additions & 1 deletion libid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ add_library(libid
include/misc/drivers.h misc/drivers.cpp
include/misc/id.h
include/misc/memory.h misc/memory.cpp
include/misc/os.h
include/misc/sized_types.h
include/misc/stack_avail.h
include/misc/ValueSaver.h
Expand Down
8 changes: 0 additions & 8 deletions libid/include/misc/os.h

This file was deleted.

1 change: 0 additions & 1 deletion libid/ui/editpal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "io/dir_file.h"
#include "misc/drivers.h"
#include "misc/memory.h"
#include "misc/os.h"
#include "misc/ValueSaver.h"
#include "ui/cmdfiles.h"
#include "ui/field_prompt.h"
Expand Down
1 change: 0 additions & 1 deletion unix/d_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "helpdefs.h"
#include "math/fixed_pt.h"
#include "misc/drivers.h"
#include "misc/os.h"
#include "ui/diskvid.h"
#include "ui/editpal.h"
#include "ui/goodbye.h"
Expand Down
3 changes: 2 additions & 1 deletion unix/unixscr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "engine/id_data.h"
#include "helpdefs.h"
#include "misc/drivers.h"
#include "misc/os.h"
#include "ui/cmdfiles.h"
#include "ui/editpal.h"
#include "ui/goodbye.h"
Expand Down Expand Up @@ -120,6 +119,8 @@ static int ipixtab[256];
static unsigned long pixtab[256];
typedef unsigned long XPixel;

bool g_fake_lut{};

static XPixel cmap_pixtab[256]; // for faking a LUTs on non-LUT visuals
static bool cmap_pixtab_alloced = false;
static unsigned long do_fake_lut(int idx)
Expand Down
2 changes: 0 additions & 2 deletions unix/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
* Copyright 1992 Ken Shirriff
*/

bool g_fake_lut{};

VideoInfo x11_video_table[] = {
{999, 800, 600, 256, nullptr, " "},
};
Expand Down

0 comments on commit 42ea120

Please sign in to comment.