inline constants.h where it belongs
This commit is contained in:
parent
5586071a0a
commit
977396db4b
3 changed files with 4 additions and 13 deletions
|
@ -1,11 +0,0 @@
|
||||||
#ifndef _CONSTANTS_H
|
|
||||||
#define _CONSTANTS_H 1
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Color modes this program can cope with
|
|
||||||
*/
|
|
||||||
#define COLOR_MODE_MONO 1
|
|
||||||
#define COLOR_MODE_GRAY 2
|
|
||||||
#define COLOR_MODE_COLOR 3
|
|
||||||
|
|
||||||
#endif /* !_CONSTANTS_H */
|
|
|
@ -4,7 +4,6 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "constants.h"
|
|
||||||
#include "resources.h"
|
#include "resources.h"
|
||||||
|
|
||||||
void usage( void ) {
|
void usage( void ) {
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
#include "hp.h"
|
#include "hp.h"
|
||||||
#include "small.h"
|
#include "small.h"
|
||||||
#include "x48.h"
|
#include "x48.h"
|
||||||
#include "constants.h"
|
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
#include "errors.h"
|
#include "errors.h"
|
||||||
#include "hp48.h"
|
#include "hp48.h"
|
||||||
|
@ -972,6 +971,10 @@ icon_map_t icon_maps_gx[] = {
|
||||||
#define KEYBOARD_OFFSET_X SIDE_SKIP
|
#define KEYBOARD_OFFSET_X SIDE_SKIP
|
||||||
#define KEYBOARD_OFFSET_Y ( TOP_SKIP + DISPLAY_HEIGHT + DISP_KBD_SKIP )
|
#define KEYBOARD_OFFSET_Y ( TOP_SKIP + DISPLAY_HEIGHT + DISP_KBD_SKIP )
|
||||||
|
|
||||||
|
#define COLOR_MODE_MONO 1
|
||||||
|
#define COLOR_MODE_GRAY 2
|
||||||
|
#define COLOR_MODE_COLOR 3
|
||||||
|
|
||||||
int AllocColors( void ) {
|
int AllocColors( void ) {
|
||||||
int c, error, dyn;
|
int c, error, dyn;
|
||||||
int r_shift = 0, g_shift = 0, b_shift = 0;
|
int r_shift = 0, g_shift = 0, b_shift = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue