inline constants.h where it belongs

This commit is contained in:
Gwenhael Le Moine 2023-05-03 14:48:06 +02:00
parent 5586071a0a
commit 977396db4b
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
3 changed files with 4 additions and 13 deletions

View file

@ -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 */

View file

@ -4,7 +4,6 @@
#include <unistd.h>
#include "config.h"
#include "constants.h"
#include "resources.h"
void usage( void ) {

View file

@ -21,7 +21,6 @@
#include "hp.h"
#include "small.h"
#include "x48.h"
#include "constants.h"
#include "device.h"
#include "errors.h"
#include "hp48.h"
@ -972,6 +971,10 @@ icon_map_t icon_maps_gx[] = {
#define KEYBOARD_OFFSET_X SIDE_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 c, error, dyn;
int r_shift = 0, g_shift = 0, b_shift = 0;