mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
better solution
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@25 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -7,7 +7,7 @@ CFLAGS = -fPIC -Iinclude -D_MILSKO
|
||||
LDFLAGS =
|
||||
LIBS =
|
||||
|
||||
L_OBJS = src/ds.o src/core.o
|
||||
L_OBJS = src/ds.o src/core.o src/default.o
|
||||
L_OBJS += src/window.o
|
||||
|
||||
ifeq ($(TARGET),NetBSD)
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
#ifndef __MILSKO_DEFAULT_H__
|
||||
#define __MILSKO_DEFAULT_H__
|
||||
|
||||
#define MILSKO_BACKGROUND "#ddd"
|
||||
#include <Milsko/MachDep.h>
|
||||
|
||||
MILSKODECL const char* MilskoDefaultBackground;
|
||||
|
||||
#endif
|
||||
|
||||
4
src/default.c
Normal file
4
src/default.c
Normal file
@@ -0,0 +1,4 @@
|
||||
/* $Id$ */
|
||||
#include <Milsko/Milsko.h>
|
||||
|
||||
const char* MilskoDefaultBackground = "#ddd";
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <Milsko/Milsko.h>
|
||||
|
||||
static void create(MilskoWidget handle) {
|
||||
MilskoSetText(handle, MilskoNbackground, MILSKO_BACKGROUND);
|
||||
MilskoSetText(handle, MilskoNbackground, MilskoDefaultBackground);
|
||||
}
|
||||
|
||||
static void draw(MilskoWidget handle) {
|
||||
|
||||
Reference in New Issue
Block a user