// twsize.c // // This file implements the font-size menu which is common to all Twistory windows. // // by John D. de Boer #include "twist.h" #include "twindow.h" extern SortGlobs Sort; extern GlobalOpts Opt; #define SIZES (8) static const int Sizes[SIZES] = { 9,10,11,12,14,16,18,24 }; // The font-size menu void InitSizeMenu(void) { } void SetUpSizeMenu(void) { } static UInt32 SizeToCommand(int S) { UInt32 U; U= 'Si00' + S; if (S>9) U+= 256 - 10; if (S>19) U+= 256 - 10; return U; } static int CommandToSize(UInt32 C) { int S; S= C - 'Si00'; if (S>9) S-= 256 - 10; if (S>19) S-= 256 - 10; return S; } void AdjustSizeMenu(window *W) { int i; for (i=0;i