Who's Online |
25 user(s) are online ( 17 user(s) are browsing Forums)
Members: 0
Guests: 25
more...
|
|
|
|
Re: Updater not working
|
|
Just can't stay away 
|
@Cageman
Yep, now I'm confused too if SteffJay is talking about AmigaOS update tool or AEON update one ¿:-/
If it's about AEON, he should install AEON classes too to make it work.
|
|
|
|
Re: Updater not working
|
|
Just can't stay away 
|
|
|
|
|
Re: Hi to all Amiga fans
|
|
Just can't stay away 
|
@kikems
wooohoooo!!!!
enjoy such greta machine!!!
|
|
|
|
Re: Amiupdate
|
|
Just can't stay away 
|
@Tuvok
Downloaded and works fine!!!
THX
|
|
|
|
Re: DumbPad v03
|
|
Just can't stay away 
|
@Maijestro
ok. that's another thing. D&D on AmiDock works if program has ReadArgs() IIRC it's working on.
|
|
|
|
Re: DumbPad v03
|
|
Just can't stay away 
|
|
|
|
|
Re: Bootarguments for Qemu AmigaOne install on Mac M1
|
|
Just can't stay away 
|
@johnfante
yep, there still some issues, 'cos server(s) where updated. Hope they will fixed ASAP.
|
|
|
|
Re: Snork: New Tracing Tool for AmigaOS 4
|
|
Just can't stay away 
|
Just test it a bit and working fine on SAM460ex.
Just when you CTRL+C Snork just show a simple "Snork ended" on Shell/CLI (and maybe to serial outoput too).
|
|
|
|
Re: NULL, 0xFFFFFFFF and Exec: Real vs QEMU
|
|
Just can't stay away 
|
@kas1e It's on the autodoc for such "strange" values. https://wiki.amigaos.net/amiga/autodocs/intuition.doc.txtNAME SetWindowTitles -- Set the window's titles for both window and screen. SYNOPSIS void SetWindowTitles(struct window *win, CONST_STRPTR window_title, CONST_STRPTR screen_title); FUNCTION Allows you to set the text which appears in the Window and/or Screen title bars. ... You can specify a value of -1 (i.e. (STRPTR) ~0) for either of the title pointers. This designates that you want Intuition to leave the current setting of that particular title alone, and modify only the other one. Of course, you could set both to -1. Furthermore, you can set a value of 0 (zero) for either of the title pointers. Doing so specifies that you want no title to appear (the title bar will be blank). ...
|
|
|
|
Re: SDK addon package
|
Posted on: 6/21 10:58
#11
|
Just can't stay away 
|
@walkero tested with a simple reaction gui and wotks finer using clib4.
#gcc -Wall -N testreaction3.c -o TestReAction3 -lauto -mcrt=clib4 -v
Using built-in specs.
COLLECT_GCC=/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/gcc
COLLECT_LTO_WRAPPER=/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/../../libexec/gcc/ppc-amigaos/11.3.0/lto-wrapper
Target: ppc-amigaos
Configured with: /opt/adtools/gcc/repo/configure --with-bugurl=https://github.com/sba1/adtools/issues --with-pkgversion='adtools build 11.3.0' --host=ppc-amigaos --target=ppc-amigaos --disable-nls --prefix=/gcc --with-gmp=/opt/adtools/native-build/root-cross --with-mpfr=/opt/adtools/native-build/root-cross --with-mpc=/opt/adtools/native-build/root-cross --program-prefix=ppc-amigaos- --program-suffix=-11 --libexecdir=/gcc/libexec --enable-languages=c,c++ --enable-haifa --enable-sjlj-exceptions --disable-libstdcxx-pch --disable-tls --enable-threads=amigaos --enable-lto --disable-c++tools
Thread model: amigaos
Supported LTO compression algorithms: zlib
gcc version 11.3.0 (adtools build 11.3.0)
COLLECT_GCC_OPTIONS='-Wall' '-N' '-o' 'TestReAction3' '-mcrt=clib4' '-v' '-dumpdir' 'TestReAction3-'
/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/../../libexec/gcc/ppc-amigaos/11.3.0/cc1 -quiet -v -imultilib clib4 -iprefix /Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/ -idirafter /SDK/clib4/include -idirafter /SDK/local/clib4/include -idirafter /SDK/include/include_h -idirafter /SDK/include/netinclude -idirafter /SDK/local/common/include testreaction3.c -quiet -dumpdir TestReAction3- -dumpbase testreaction3.c -dumpbase-ext .c -mcrt=clib4 -Wall -version -o /tmp/ccJ7IQ3Z.s
GNU C17 (adtools build 11.3.0) version 11.3.0 (ppc-amigaos)
compiled by GNU C version 11.3.0, GMP version 5.1.3, MPFR version 3.1.6, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory "/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/../../../../ppc-amigaos/include"
ignoring duplicate directory "/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/../../lib/gcc/ppc-amigaos/11.3.0/include"
ignoring duplicate directory "/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/../../lib/gcc/ppc-amigaos/11.3.0/include-fixed"
ignoring nonexistent directory "/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/../../lib/gcc/ppc-amigaos/11.3.0/../../../../ppc-amigaos/include"
ignoring nonexistent directory "/SDK/local/clib4/include"
#include "..." search starts here:
#include <...> search starts here:
/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/include
/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/include-fixed
/gcc/include
/SDK/clib4/include
/SDK/include/include_h
/SDK/include/netinclude
/SDK/local/common/include
End of search list.
GNU C17 (adtools build 11.3.0) version 11.3.0 (ppc-amigaos)
compiled by GNU C version 11.3.0, GMP version 5.1.3, MPFR version 3.1.6, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: e410ff90f92477c41a505851d1540446
testreaction3.c: In function 'Process_GUI':
testreaction3.c:225:16: warning: unused variable 'res_value' [-Wunused-variable]
225 | res_value = 0;
| ^~~~~~~~~
COLLECT_GCC_OPTIONS='-Wall' '-N' '-o' 'TestReAction3' '-mcrt=clib4' '-v' '-dumpdir' 'TestReAction3-'
as -mppc -many -mbig -o /tmp/ccN5YX1d.o /tmp/ccJ7IQ3Z.s
COMPILER_PATH=/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/../../libexec/gcc/ppc-amigaos/11.3.0/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/../../libexec/gcc/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/../../libexec/gcc/ppc-amigaos/11.3.0/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/../../libexec/gcc/ppc-amigaos/11.3.0/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/../../libexec/gcc/
LIBRARY_PATH=/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/clib4/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/clib4/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/clib4/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/../../../:/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/../../../
COLLECT_GCC_OPTIONS='-Wall' '-N' '-o' 'TestReAction3' '-mcrt=clib4' '-v' '-dumpdir' 'TestReAction3.'
ld --defsym __amigaos4__=1 -Bstatic -q -d -V -Qy -L/SDK/clib4/lib -L/GCC/lib/gcc/ppc-amigaos/11.3.0/clib4/lib -L/SDK/local/clib4/lib -L/SDK/local/common/lib -o TestReAction3 -N /SDK/clib4/lib/crtbegin.o /SDK/clib4/lib/crt0.o -L/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/clib4 -L/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/clib4 -L/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/clib4 -L/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0 -L/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc -L/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0 -L/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0 -L/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc -L/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/../../.. -L/Devel/SDK/gcc/ppc-amigaos/bin/11.3.0/../lib/gcc/ppc-amigaos/11.3.0/../../.. /tmp/ccN5YX1d.o -lauto -lgcc -lgcc_eh --start-group -lc --end-group -lgcc -lgcc_eh /SDK/clib4/lib/crtend.o
GNU ld (GNU Binutils) 2.23.2
Supported emulations:
amigaos
elf32ppc
COLLECT_GCC_OPTIONS='-Wall' '-N' '-o' 'TestReAction3' '-mcrt=clib4' '-v' '-dumpdir' 'TestReAction3.'
#gcc -Wall -N testreaction3.c -o TestReAction3 -lauto -mcrt=clib4
testreaction3.c: In function 'Process_GUI':
testreaction3.c:225:16: warning: unused variable 'res_value' [-Wunused-variable]
225 | res_value = 0;
| ^~~~~~~~~
|
|
|
|
Re: boopsi: how to make button with 2 lines with centered text in ?
|
Posted on: 6/16 14:04
#12
|
Just can't stay away 
|
Try to use:
LABEL_Text, "Replace All\n in All Tabs ",
with blank spaces at start + end of 2nd line, seems to work ¿:-/ Still have the "color" issue when clicking. EDIT1: seems both lines are almost same width in pixels, maybe how label.image do the justification calculation has some flaws. EDIT2: color "issue":
LAYOUT_AddChild, NewObject(NULL, "button.gadget",
//GA_Text, "Replace in all tabs",
//BUTTON_Justification, BCJ_CENTER,
BUTTON_RenderImage, OBJ(OID_REPLACE_ALL_TABS),
BUTTON_SelectImage, OBJ(OID_REPLACE_ALL_TABS),
TAG_END),
Edited by jabirulo on 2025/6/16 14:28:16
|
|
|
|
Re: Correct way to work with RGB/ARGB bitmaps?
|
|
Just can't stay away 
|
|
|
|
|
Re: Correct way to work with RGB/ARGB bitmaps?
|
Posted on: 6/12 21:17
#14
|
Just can't stay away 
|
@kas1e Hi, this is how I do it on mgbaGUI and denGUI:
BOOL updateButtonImage(STRPTR fn, CONST_STRPTR fb_str, uint32 OID_btn, struct Window *pw)
{
Object *newobj = NULL;
struct ExamineData *datF;
uint32 OID_img = OID_btn + 1;
DBUG("updateButtonImage() '%s'\n",fn);
// Check if filename exists
datF = IDOS->ExamineObjectTags(EX_StringNameInput,fn, TAG_END);
if(datF==NULL && fb_str==NULL) { return FALSE; }
if(datF) {
DBUG(" ExamineObjectTags(): '%s' %s%lld bytes\n",datF->Name,"",datF->FileSize); // FileSize is int64
IDOS->FreeDosObject(DOS_EXAMINEDATA, datF);
// Create and set button/image
newobj = IIntuition->NewObject(BitMapClass, NULL, //"bitmap.image",
IA_Scalable, TRUE,
IA_Width,256, IA_Height,224,
//BITMAP_Masking, TRUE,
BITMAP_Screen, pw->WScreen,
BITMAP_SourceFile, fn,
BITMAP_SelectSourceFile, PREVIEWS"/_launchROM.png",
TAG_DONE);
}
DBUG(" new image: 0x%08lx\n",newobj);
if(newobj) {
IIntuition->SetGadgetAttrs(GAD(OID_btn), pw, NULL, BUTTON_RenderImage,newobj, TAG_DONE);
}
else
{// No image found -> show fallback string (fb_str)
IIntuition->SetGadgetAttrs(GAD(OID_btn), pw, NULL, GA_Text,fb_str, TAG_DONE);
}
DBUG(" old image: 0x%08lx (disposing)\n",OBJ(OID_img));
IIntuition->DisposeObject( OBJ(OID_img) );
OBJ(OID_img) = newobj;
IIntuition->RefreshGadgets(GAD(OID_btn), pw, NULL);
return TRUE;
}
just change/remove code to use "BITMAP_BitMap" instead of "BITMAP_SelectSourceFile"
|
|
|
|
Re: DumbPad v03
|
|
Just can't stay away 
|
@kas1e Just use "am->am_NumArgs" and "am->am_ArgList" as it should "contain" all dropped files.
...
struct AppMessage *am;
...
myWBArgsfunction(am->am_NumArgs, am->am_ArgList);
...
Something like this maybe:
myWBArgsfunction(int num_args, const struct WBArg *arg)
{
for (i=0; i<num_args; i++) {
fullpath = get_fullpath(&arg[i]);
//if(is_directory(pathbuf)) { continue; }
if(is_file(pathbuf)) { load_file(pathbuf); }
}
}
|
|
|
|
Re: DumbPad v02
|
|
Just can't stay away 
|
@kas1e
Yes, the font that user defines in Font prefs (System default font:).
Another way could be to use tooltypes for getting the font name+size ot an ASL fontrequester.
|
|
|
|
Re: DumbPad v02
|
|
Just can't stay away 
|
For use Fixed font "juts" need to parse font.prefs and the use the fixed font size 
;/* parse and show some info from an IFF Preferences file
gcc -N -Wall readFontPrefs.c -o readFontPrefs -gstabs
quit
struct FontPrefs
{
LONG fp_Reserved[3];
UWORD fp_Reserved2;
UWORD fp_Type;
UBYTE fp_FrontPen;
UBYTE fp_BackPen;
UBYTE fp_DrawMode;
UBYTE fp_SpecialDrawMode;
struct TextAttr fp_TextAttr;
TEXT fp_Name[FONTNAMESIZE];
}
*/
#include <exec/types.h>
#include <dos/dos.h>
#include <libraries/dos.h>
#include <libraries/iffparse.h>
#include <prefs/prefhdr.h>
#include <prefs/font.h>
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/iffparse.h>
struct IFFParseIFace *IIFF;
int main(void)
{
struct IFFHandle *iffhandle;
struct StoredProperty *sp;
int32 ifferror, error = 0, rc = RETURN_OK;
struct Library *IFFParseBase = IExec->OpenLibrary ("iffparse.library", 50);
IIFF = (struct IFFParseIFace*)IExec->GetInterface(IFFParseBase, "main", 1, NULL);
if(IIFF)
{
// allocate an IFF handle
if( (iffhandle = IIFF->AllocIFF()) )
{
// Open the file for reading
if( (iffhandle->iff_Stream = (int32)IDOS->Open("env:sys/font.prefs", MODE_OLDFILE)) )
{
// initialize the iff handle
IIFF->InitIFFasDOS(iffhandle);
if( (ifferror = IIFF->OpenIFF(iffhandle, IFFF_READ)) == 0 )
{
IIFF->PropChunk(iffhandle, ID_PREF, ID_FONT); // font.prefs
for(;;)
{
ifferror = IIFF->ParseIFF(iffhandle, IFFPARSE_STEP);
if(ifferror == IFFERR_EOC) continue;
else
if(ifferror) break;
if( (sp = IIFF->FindProp(iffhandle, ID_PREF, ID_FONT)) ) // font.prefs
{
uint16 fontType = ((struct FontPrefs *)sp->sp_Data)->fp_Type;
IDOS->Printf("fp_Type = %ld: ",fontType);
if(fontType == FP_SYSFONT)
{
struct TextAttr *fp_TextAttr = (struct TextAttr*)&(((struct FontPrefs *)sp->sp_Data)->fp_TextAttr);
IDOS->Printf("FP_SYSFONT '%s' %lu\n",((struct FontPrefs *)sp->sp_Data)->fp_Name,fp_TextAttr->ta_YSize);
break;
}
else { IDOS->Printf("\n"); }
}
}
IIFF->CloseIFF(iffhandle);
}
if(ifferror != IFFERR_EOF) rc = RETURN_FAIL;
IDOS->Close(iffhandle->iff_Stream);
}
else error = IDOS->IoErr();
IIFF->FreeIFF(iffhandle);
}
else
{
IDOS->VFPrintf(IDOS->Output(), "Can't allocate IFF handle\n", NULL);
rc = RETURN_FAIL;
}
IDOS->SetIoErr(error);
if(error) rc = RETURN_FAIL;
}
else rc = RETURN_FAIL;
IExec->DropInterface( (struct Interface*)IIFF );
IExec->CloseLibrary(IFFParseBase);
return(rc);
}
and use "GA_TEXTEDITOR_TextAttr (struct TextAttr *) (V50)" (hope it works)
|
|
|
|
Re: How extract truecolor image from an icon ?
|
|
Just can't stay away 
|
@kas1e I use this code on one of my silly tools:
if(context)
{
struct Node *n;
struct DiskObject *icon;
struct ExamineData *dat;
// Re-read theme drawer, but first "clean" listbrowser_list
IListBrowser->FreeListBrowserList(listbrowser_list);
while( (dat=IDOS->ExamineDir(context)) )
{
if( EXD_IS_FILE(dat) )
{
IUtility->Strlcpy(pointer_fullname, theme_drawer_name, DMP_MAX_SRC);
IDOS->AddPart(pointer_fullname, dat->Name, DMP_MAX_SRC);
pointer_fullname[IUtility->Strlen(pointer_fullname) - 5] = '\0'; // remove '.info'
//DBUG("'%s'\n",pointer_fullname);
if( !(icon=IIcon->GetIconTags(pointer_fullname,
ICONGETA_FailIfUnavailable, TRUE,
ICONGETA_UseFriendBitMap, TRUE,
//ICONGETA_Width,IMG_W,
//ICONGETA_Height,IMG_H,
//ICONGETA_ForceScaling, TRUE,
//ICONGETA_AllowUpscaling, TRUE,
TAG_END)) ) break;
if( (n=IListBrowser->AllocListBrowserNode(TOT_COL,//TOTALCOLUMNS,
LBNA_Column,COL_IMG,
LBNCA_Image,icon->do_Gadget.GadgetRender,
//LBNCA_HorizJustify,LCJ_CENTER,
LBNA_Column,COL_TXT,
LBNCA_CopyText,TRUE, LBNCA_Text,dat->Name,
//LBNCA_HorizJustify,LCJ_CENTER,
TAG_DONE)) )
{
IExec->AddTail(listbrowser_list, n);
++success;
//DBUG("%2ld)MOUSEPOINTER='%s' [0x%08lx]\n",success,dat->Name,n);
}
}
}
just change "listbrowser" stuff with your requester/gadget and see if icon shows full colors. Maybe just adding "ICONGETA_UseFriendBitMap, TRUE, " solves it.
|
|
|
|
Re: DumbPad v01
|
|
Just can't stay away 
|
@kas1e tested a bit hera and seems working fine!!!! Great job mate!!! Any chances to have/use fixed font size in edit? about _DATE_ macro wortks fine, but isn't "amigalike", you can use this on makefile:
OS := $(shell uname)
ifeq ($(strip $(OS)),AmigaOS)
AMIGADATE = $(shell c:date LFORMAT %d.%m.%Y)
#YEAR = $(shell c:date LFORMAT %Y)
else
AMIGADATE = $(shell date +"%-d.%m.%Y")
#YEAR = $(shell date +"%Y")
endif
CFLAGS = $(INCPATH) -Wall -D__AMIGADATE__=\"$(AMIGADATE)\"
and add below lines to windows os if shows popup gadget: WINDOW_PopupGadget, TRUE, WINDOW_UniqueID, "DumbPad_main", and maybe at bottom, just some info about column/line cursor is. But as said great job!!!!
|
|
|
|
Re: DumbPad v01
|
|
Just can't stay away 
|
@kas1e
IMO, just open a new blank tab/page with dropped file contents.
|
|
|
|