home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
blabla
/
showfont
/
showfont.history
< prev
next >
Wrap
Text File
|
1998-01-24
|
10KB
|
198 lines
/****************************************************************************
Project: ShowFont - History file
Author: (c)1997 by Dariusz J. Garbowski - Thufor/BlahBlah
ver rev date changes
2.0 o
2.0.25ß 1997.11.14 - added: 2 new parameters: FOREGROUND and BACKGROUND;
template is now:
FONTNAME/A,FONTSIZE/A/N,DL=DELAY/N,TXT=TEXT/K,SV=SAVE/K,
XW=XWIN/N/K,YW=YWIN/N/K,PUBSCR=PUBSCREEN/K,
FOREGROUND=FG/N/K,BACKGROUND=BG/N/K
(thx 4 Lukasz Prokulski)
- added: process_CLI_params(),
SFParams{}
(thx 4 Lukasz Prokulski)
- changed: all with argv[] to SFParams{} (all is now
easier!) (thx 4 Lukasz Prokulski)
- some cosmetics... (eg. TRUE in place of 1L, etc.)
2.0.24ß 1997.10.03 - bug fixed: TextRastPort() is changed so now it works fine
- bug fixed: SAVE works now, but it requires too much chip
memory so for bigger bitmaps it can't be done...
SaveRPortDT() will be rewritten...
2.0.24ß 1997.10.03 - minor changes in prep_window
- added: init_sbmp_size()
- fixed: super-bitmap has good size now (no more 800x600!)
- bug fixed: doNewSize() had an error that in specifical
causes was generated division by zero!!! It was in
modyfying prop gadgets... (doNewSize() was taken from
Rom Kernel Manual!!!)
- bug: founded in TextRastPort(): how to get legal size
of RastPort???
2.0.22ß 1997.09.06 - rewritten: COMPLETLY NOW show_font() (main function)
- bug fixed: no ".font" postfix is needed (version
2.0.21ß needed it...)
- bug fixed: cli param DL=DELAY/N now works, but
not too good because of changing GUI philosophy
(2.0.21ß destruct it...), but it will be fixed
- bug: cli param SAVE doesn't work yet :( It will
be fixed in NEAREST future
2.0.21ß 1997.09.05 - changed: style of version numbering. New format is:
major.minor.revision
- changed: window to SuperBitMap window with scroller
gadgets. Now text can be bigger than screen and user
can scroll it in window!
- added: size gadget to window
- added: BitMaps.c: allocBitMap()
disposeBitMap()
- rewritten: show_font() (main function)
- added: doNewSize()
doMsgLoop()
initBorderProps()
- some little bugs is this new version yet...
- many of these changes was possible thanks to RKM
Libraries...
1.3 o BLABLA INSIDE VERSION
1.020 1997.08.12 - added: get_txt_size()
1.019 1997.08.12 - changed: saving to iff is done after opening window
(not after IDCMP_CLOSEWINDOW)
1.018 1997.08.12 - added: "auto '.font' postfix adding"
1.017 1997.08.11 - some fixes (window size, printing position...)
1.016 1997.08.10 - little changes (window, etc.)
1.015 1997.08.10 - some variables kicked out
1.014 1997.08.10 - GetTextRPSize()
1.013 1997.08.10 - MULTI-SOURCE now...
1.2 o LAST ONE-SOURCE VERSION (not spreaded)
1.012 1997.08.05 - TextRastPort() bug fixed
1.011 1997.05.04 - SearchUByte()
- TextRastPort()
1.2ß o BLABLA INSIDE VERSION (also sended to Marko Seppannen)
1.010 1997.05.03 - changed TEMPLATE; now it looks:
FONTNAME/A,FONTSIZE/A/N,DL=DELAY/N,TXT=TEXT/K,SV=SAVE/K,
XW=XWIN/N/K,YW=YWIN/N/K,PUBSCR=PUBSCREEN/K
(thx 4 Lukasz Prokulski)
- handle_window_events() is out! (thx 4 Luke Prokulski
and... me ;-)
- PrintFault() added (when bad args)
- added prep_window()
- changed return values to defined consts
(eg. RETURN_ERROR)
1.1ß o ONLY BLABLA INSIDE VERSION
1.009 1997.04.27 - added SAVE=FILENAME/K keyword; it saves only window's
RastPort now - it will be changed (thx for suggestion
4 Marko Seppänen)
1.008 1997.04.27 - enforcer hits *2 removed (done after rev.1.04)
1.007 1997.04.27 - there was not FreeVec( vrport )...
1.006 1997.04.26 - no more resizing window! now it opens in right size
1.005 1997.04.26 - itoa() is replaced by my_sprintf()
- changed libraries opening (diskfont last) (thx 4 Lukasz
Prokulski)
- changed some SCOptions for SAS (thx 4 Lukasz Prokulski)
1.0 o FIRST PUBLIC RELEASE
1.004 1997.04.01 - added cli param PUBSCREEN=PUBSCREEN/K
- added TAG_DONE in main_win_tags{} structure (it may
cause some strange things...)
1.003 1997.03.31 - enforcer hit *1 removed
- printf() changed to dos's Printf() - gained 3904 bytes
- some comments in source
- font size can't be now >255 (it was dangerous!)
- cli param DELAY > 0 -> no close gadget
- added cli param TEXT=TEXT/K
- added cli param XWIN=XWIN/N/K
- added cli param YWIN=YWIN/N/K
- it cuts fontnames to window title bar (no possibility of
writing something after unsigned char mainwndtitle[]
1.002 1997.03.29 - ReadArgs() added
- added cli param DELAY=DELAY/N
- it shows fontname and fontsize on window titlebar
- stdlibext added (multifile source)
- show_font() added
- enforcer hit *1 expected
1.001 1997.03.20 - it shows all fonts (ASCII 32-255)
- it opens window in right y size
- it has version string
1997.03.07 - idea of ShowFont
pre 1997-02-0x - OpenFont V1.0 - not released, tested on my system,
works ok, but it's very primitive
****************************************************************************/
/****************************************************************************
TO DO / BUGS
--------------
(97.04.26) 1.It can't be (?) closed before resizing! Can be? [look at resizing in show_font()]
There is not resizing now!
2.Font requester.
3.File requester (?).
(97.03.31) 4.User's text.
(97.03.31) 5.Don't open window with CLOSEGADGET when cli param DELAY>0!
(97.04.27) 6.Bitmap saving. (Marko Seppänen)
7.Wildcards. (Marko Seppänen)
(97.10.03) 8.TextRastPort() gets strange values for rportsize_y... [function changed]
X1.Can I use struct Screen *pub_screen after opening window and UnlockPubScreen()?
Yes! Look at autodocs LockPubScreen()!
****************************************************************************/
/****************************************************************************
UWAGI
-------
=============================================================================
*1 - enforcer hit przy sprawdzaniu argument DELAY=DELAY/N - casting:
-----------------------------------------------------------------------------
if (*(ULONG *)argv[CLI_PARAM_DELAY]==0) // <- ###here!###
{
while( handle_window_events( main_window ) != IDCMP_CLOSEWINDOW )
{}
}
else
{
Delay(*(ULONG *)argv[CLI_PARAM_DELAY]);
}
Enforcer Hit! Bad Program!
31-Mar-97 10:38:03
LONG-READ from 00000000 PC: 00426B02
USP: 004238CC SR: 0014 SW: 0749 (U0)(-)(-) TCB: 003BA6D0
Data: 00000002 0000005C 0041B100 00000000 00000054 00000005 00000006 00000000
Addr: 00000000 00000000 0042390C 002A0AF9 0041AFA0 0041B100 00211614 ========
Stck: 0000000E 0000000E 000EED71 00000000 003BDDB4 002A0B09 00215064 00000011
Stck: 00000014 00000041 B1AE0041 B1D00041 B1F20041 B2140041 B2360041 B2580234
PC-8: 00202077 18264EAE FFC45286 6000FF72 206C01D0 2C6C0510 4EAEFE38 206D0008
PC *: 4A906612 206C01D0 61000050 0C800000 02006710 60EE206D 00082210 2C6C04D0
Name: "Shell Process" CLI: "Proj/ShowFont10/ShowFont" Hunk 0000 Offset 00000632
-----------------------------------------------------------------------------
*2 - enforcer hity przy uûywaniu pointera main_window do okienka:
-----------------------------------------------------------------------------
Nie inicjalizowaê wskaúników do okien i ekranów!!! Inicjalizacja
main_window = NULL spowodowaîa nie wykrycie uûycia tego wskaúnika przed
odpowiednim jego ustawieniem! Bez inicjalizacji kompilator zgîosiîby bîâd
"uninitialized...".
=============================================================================
****************************************************************************/