Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
25 user(s) are online (17 user(s) are browsing Forums)

Members: 0
Guests: 25

more...

Support us!

Headlines

Forum Index


Board index » All Posts (jabirulo)




Re: Updater not working
Just can't stay away
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.

Go to top


Re: Updater not working
Just can't stay away
Just can't stay away



Go to top


Re: Hi to all Amiga fans
Just can't stay away
Just can't stay away


@kikems

wooohoooo!!!!

enjoy such greta machine!!!

Go to top


Re: Amiupdate
Just can't stay away
Just can't stay away


@Tuvok

Downloaded and works fine!!!

THX

Go to top


Re: DumbPad v03
Just can't stay away
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.

Go to top


Re: DumbPad v03
Just can't stay away
Just can't stay away


@Maijestro

you can try yourself on the beta/demo:
https://kas1e.mikendezign.com/aos4/dumbpad/v03/dumbpad_v03.lha

Go to top


Re: Bootarguments for Qemu AmigaOne install on Mac M1
Just can't stay away
Just can't stay away


@johnfante

yep, there still some issues, 'cos server(s) where updated.
Hope they will fixed ASAP.

Go to top


Re: Bootarguments for Qemu AmigaOne install on Mac M1
Just can't stay away
Just can't stay away


@johnfante

there is an update AmiUpdate v2.56:
http://www.codebench.co.uk/amiupdate_ ... /index.php?page=downloads

Think it fixes the amissl v5 issue.

Go to top


Re: Snork: New Tracing Tool for AmigaOS 4
Just can't stay away
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).

Go to top


Re: NULL, 0xFFFFFFFF and Exec: Real vs QEMU
Just can't stay away
Just can't stay away


@kas1e


It's on the autodoc for such "strange" values.

https://wiki.amigaos.net/amiga/autodocs/intuition.doc.txt



NAME
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).
...

Go to top


Re: SDK addon package
Just can't stay away
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 modelamigaos
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 --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.-quiet -dumpdir TestReAction3- -dumpbase testreaction3.-dumpbase-ext .-mcrt=clib4 -Wall -version -/tmp/ccJ7IQ3Z.s
GNU C17 
(adtools build 11.3.0version 11.3.0 (ppc-amigaos)
    
compiled by GNU C version 11.3.0GMP version 5.1.3MPFR version 3.1.6MPC version 1.0.3isl 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.0version 11.3.0 (ppc-amigaos)
    
compiled by GNU C version 11.3.0GMP version 5.1.3MPFR version 3.1.6MPC version 1.0.3isl version none
GGC heuristics
: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum
e410ff90f92477c41a505851d1540446
testreaction3
.cIn function 'Process_GUI':
testreaction3.c:225:16warningunused 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 -/tmp/ccN5YX1d./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__=-Bstatic ----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 -/SDK/clib4/lib/crtbegin./SDK/clib4/lib/crt0.-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.-lauto -lgcc -lgcc_eh --start-group -lc --end-group -lgcc -lgcc_eh /SDK/clib4/lib/crtend.o
GNU ld 
(GNU Binutils2.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.cIn function 'Process_GUI':
testreaction3.c:225:16warningunused variable 'res_value' [-Wunused-variable]
  
225 |                res_value 0;
      |                ^~~~~~~~~

Go to top


Re: boopsi: how to make button with 2 lines with centered text in ?
Just can't stay away
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_AddChildNewObject(NULL"button.gadget",
            
//GA_Text, "Replace in all tabs",
            //BUTTON_Justification, BCJ_CENTER,
            
BUTTON_RenderImageOBJ(OID_REPLACE_ALL_TABS),
            
BUTTON_SelectImageOBJ(OID_REPLACE_ALL_TABS),
            
TAG_END),


Edited by jabirulo on 2025/6/16 14:28:16
Go to top


Re: Correct way to work with RGB/ARGB bitmaps?
Just can't stay away
Just can't stay away



Go to top


Re: Correct way to work with RGB/ARGB bitmaps?
Just can't stay away
Just can't stay away


@kas1e

Hi, this is how I do it on mgbaGUI and denGUI:
BOOL updateButtonImage(STRPTR fnCONST_STRPTR fb_struint32 OID_btnstruct 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,fnTAG_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_EXAMINEDATAdatF);
        
// Create and set button/image
        
newobj IIntuition->NewObject(BitMapClassNULL//"bitmap.image",
                                       
IA_ScalableTRUE,
                                       
IA_Width,256IA_Height,224,
                                       
//BITMAP_Masking, TRUE,
                                       
BITMAP_Screen,           pw->WScreen,
                                       
BITMAP_SourceFile,       fn,
                                       
BITMAP_SelectSourceFilePREVIEWS"/_launchROM.png",
                                      
TAG_DONE);
    }
DBUG("  new image: 0x%08lx\n",newobj);
    if(
newobj) {
        
IIntuition->SetGadgetAttrs(GAD(OID_btn), pwNULLBUTTON_RenderImage,newobjTAG_DONE);
    }
    else
    {
// No image found -> show fallback string (fb_str)
        
IIntuition->SetGadgetAttrs(GAD(OID_btn), pwNULLGA_Text,fb_strTAG_DONE);
    }

DBUG("  old image: 0x%08lx (disposing)\n",OBJ(OID_img));
    
IIntuition->DisposeObjectOBJ(OID_img) );
    
OBJ(OID_img) = newobj;
    
IIntuition->RefreshGadgets(GAD(OID_btn), pwNULL);

    return 
TRUE;
}


just change/remove code to use "BITMAP_BitMap" instead of "BITMAP_SelectSourceFile"

Go to top


Re: DumbPad v03
Just can't stay away
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_NumArgsam->am_ArgList);
...


Something like this maybe:
myWBArgsfunction(int num_args, const struct WBArg *arg)
{
  for (
i=0i<num_argsi++) {
    
fullpath get_fullpath(&arg[i]);

    
//if(is_directory(pathbuf)) { continue; }

    
if(is_file(pathbuf)) { load_file(pathbuf); }
  }
}

Go to top


Re: DumbPad v02
Just can't stay away
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.

Go to top


Re: DumbPad v02
Just can't stay away
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 ifferrorerror 0rc RETURN_OK;

 
struct Library *IFFParseBase IExec->OpenLibrary ("iffparse.library"50);
 
IIFF = (struct IFFParseIFace*)IExec->GetInterface(IFFParseBase"main"1NULL);

 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(iffhandleIFFF_READ)) == )
    {
     
IIFF->PropChunk(iffhandleID_PREFID_FONT); // font.prefs
     
for(;;)
     {
      
ifferror IIFF->ParseIFF(iffhandleIFFPARSE_STEP);

      if(
ifferror == IFFERR_EOC) continue;
      else
       if(
ifferror) break;

      if( (
sp IIFF->FindProp(iffhandleID_PREFID_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_EOFrc 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(
errorrc 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)

Go to top


Re: How extract truecolor image from an icon ?
Just can't stay away
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_fullnametheme_drawer_nameDMP_MAX_SRC);
    
IDOS->AddPart(pointer_fullnamedat->NameDMP_MAX_SRC);
    
pointer_fullname[IUtility->Strlen(pointer_fullname) - 5] = '\0'// remove '.info'
//DBUG("'%s'\n",pointer_fullname);
    
if( !(icon=IIcon->GetIconTags(pointer_fullname,
                              
ICONGETA_FailIfUnavailableTRUE
                              
ICONGETA_UseFriendBitMapTRUE,
                              
//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,TRUELBNCA_Text,dat->Name,
                                               
//LBNCA_HorizJustify,LCJ_CENTER,
                                             
TAG_DONE)) )
    {
     
IExec->AddTail(listbrowser_listn);
     ++
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.

Go to top


Re: DumbPad v01
Just can't stay away
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!!!!

Go to top


Re: DumbPad v01
Just can't stay away
Just can't stay away


@kas1e

IMO, just open a new blank tab/page with dropped file contents.

Go to top



TopTop
(1) 2 3 4 ... 55 »




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project