forked from pyrite-dev/milsko
new MW_16 define for stuff that won't be done on Any 16-bit platform
This commit is contained in:
parent
c8cdaecf72
commit
74f17d71a2
13 changed files with 21 additions and 26 deletions
|
|
@ -4,14 +4,14 @@ MwWidget fpicker;
|
|||
MwWidget window;
|
||||
|
||||
/* This example does nothing on Win16 because we don't support the color picker on it (yet?) */
|
||||
#ifdef __WINDOWS__
|
||||
#ifdef MW_16
|
||||
MwWidget missing_text;
|
||||
#else
|
||||
MwWidget button;
|
||||
#endif
|
||||
|
||||
/* don't bother with color picker on win16 */
|
||||
#ifndef __WINDOWS__
|
||||
/* don't bother with color picker on 16-bit */
|
||||
#ifndef MW_16
|
||||
void MWAPI file_callback(MwWidget handle, void* user_data, void* call_data) {
|
||||
char hexColor[8];
|
||||
MwRGB* rgb = call_data;
|
||||
|
|
@ -46,7 +46,7 @@ int main() {
|
|||
MwDEFAULT, 640, 480, MwNtitle, "color picker", NULL);
|
||||
MwSetText(window, MwNbackground, MwGetInteger(window, MwNdarkTheme) ? MwDefaultBackground : MwDefaultDarkBackground);
|
||||
|
||||
#ifndef __WINDOWS__
|
||||
#ifndef MW_16
|
||||
button = MwVaCreateWidget(MwButtonClass, "button", window, 160, 180, 320, 120,
|
||||
MwNtext, "change window background",
|
||||
NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue