From 367b07a6c78b21a8d43f5244989a660f3f7a1731 Mon Sep 17 00:00:00 2001 From: twilen Date: Mon, 5 Dec 2011 20:19:08 +0000 Subject: [PATCH] Added aHidd_Sync_PixelClock tags to screen modes. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@42735 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/m68k-amiga/hidd/gfx/amigavideogfx.c | 3 ++- arch/m68k-amiga/hidd/uaegfx/uaegfx.c | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/m68k-amiga/hidd/gfx/amigavideogfx.c b/arch/m68k-amiga/hidd/gfx/amigavideogfx.c index 7b022c9226..66c86f2df9 100644 --- a/arch/m68k-amiga/hidd/gfx/amigavideogfx.c +++ b/arch/m68k-amiga/hidd/gfx/amigavideogfx.c @@ -252,7 +252,7 @@ OOP_Object *AmigaVideoCl__Root__New(OOP_Class *cl, OOP_Object *o, struct pRoot_N struct Library *OOPBase = csd->cs_OOPBase; struct TagItem mytags[2]; struct pRoot_New mymsg; - ULONG allocsize = 4000, allocsizebuf = 2000; + ULONG allocsize = 3000, allocsizebuf = 1000; ULONG allocedsize = 0, allocedsizebuf = 0; WORD x, y, cnt, i, j; @@ -324,6 +324,7 @@ OOP_Object *AmigaVideoCl__Root__New(OOP_Class *cl, OOP_Object *o, struct pRoot_N ADDTAG(aHidd_Sync_HDisp, w); ADDTAG(aHidd_Sync_VDisp, h); ADDTAG(aHidd_Sync_Flags, h >= 400 ? vHidd_Sync_Interlaced : 0); + ADDTAG(aHidd_Sync_PixelClock, 1000000000 / (280 >> res)); ADDTAG(TAG_DONE, 0); } diff --git a/arch/m68k-amiga/hidd/uaegfx/uaegfx.c b/arch/m68k-amiga/hidd/uaegfx/uaegfx.c index cac7a3b07a..de928587eb 100644 --- a/arch/m68k-amiga/hidd/uaegfx/uaegfx.c +++ b/arch/m68k-amiga/hidd/uaegfx/uaegfx.c @@ -37,7 +37,7 @@ #define DRTG(x) x; #include -#define SIZE_RESLIST 4 +#define SIZE_RESLIST 5 #define SIZE_PFLIST 19 #define SIZE_MODELIST (5 + RGBFB_MaxFormats) @@ -270,8 +270,10 @@ OOP_Object *UAEGFXCl__Root__New(OOP_Class *cl, OOP_Object *o, struct pRoot_New * reslist[i * SIZE_RESLIST + 1].ti_Data = r->Height; reslist[i * SIZE_RESLIST + 2].ti_Tag = aHidd_Sync_Description; reslist[i * SIZE_RESLIST + 2].ti_Data = (IPTR)(csd->CardBase ? "RTGFX:%hx%v" : "UAEGFX:%hx%v"); - reslist[i * SIZE_RESLIST + 3].ti_Tag = TAG_DONE; - reslist[i * SIZE_RESLIST + 3].ti_Data = 0; + reslist[i * SIZE_RESLIST + 3].ti_Tag = aHidd_Sync_PixelClock; + reslist[i * SIZE_RESLIST + 3].ti_Data = r->Modes[CHUNKY]->PixelClock; + reslist[i * SIZE_RESLIST + 4].ti_Tag = TAG_DONE; + reslist[i * SIZE_RESLIST + 4].ti_Data = 0; D(bug("%08x %d*%d\n", r, r->Width, r->Height)); restags[i].ti_Tag = aHidd_Gfx_SyncTags; restags[i].ti_Data = (IPTR)&reslist[i * SIZE_RESLIST]; -- 2.11.4.GIT