[Bug 28153] AutoIt v3.x @DesktopRefresh macro returns 0 (device caps VREFRESH hard-coded to 0)

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Dec 29 12:32:58 CST 2013


http://bugs.winehq.org/show_bug.cgi?id=28153

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |download
             Status|UNCONFIRMED                 |NEW
                URL|                            |http://www.autoitscript.com
                   |                            |/site/autoit/downloads/
                 CC|                            |focht at gmx.net
          Component|-unknown                    |winex11.drv
            Summary|AutoIt - @DesktopRefresh    |AutoIt v3.x @DesktopRefresh
                   |                            |macro returns 0 (device
                   |                            |caps VREFRESH hard-coded to
                   |                            |0)
     Ever confirmed|0                           |1

--- Comment #3 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

confirming.

Macro Reference for AutoIt: http://www.autoitscript.com/autoit3/docs/macros.htm

--- quote ---
@DesktopRefresh        Refresh rate of the primary display in hertz.
--- quote ---

Relevant part of trace log:

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/AutoIt3

$ WINEDEBUG=+tid,+seh,+relay,+x11dr wine ./AutoIt3.exe test.au3 >>log.txt 2>&1
...
0009:Call user32.GetDesktopWindow() ret=0047de0b
0009:Ret  user32.GetDesktopWindow() retval=00010020 ret=0047de0b
0009:Call user32.GetDC(00010020) ret=0047de15
0009:Call
winex11.drv.GetDC(00160045,00010020,00010020,008ef1a8,008ef198,0000001a)
ret=7eb2656a
0009:Ret  winex11.drv.GetDC() retval=00000001 ret=7eb2656a
0009:Call winex11.drv.EnumDisplayMonitors(00000000,00000000,7eb35888,008ef0cc)
ret=7eb1f0d1
0009:Ret  winex11.drv.EnumDisplayMonitors() retval=00000001 ret=7eb1f0d1
0009:Ret  user32.GetDC() retval=00160045 ret=0047de15
0009:Call gdi32.GetDeviceCaps(00160045,00000074) ret=0047de20
0009:Ret  gdi32.GetDeviceCaps() retval=00000000 ret=0047de20 
...
0009:Call user32.MessageBoxW(00000000,0014f960 L"0",00148bd0 L"Desktop
Refresh",00010000) ret=004592cc
--- snip ---

Source:
http://source.winehq.org/git/wine.git/blob/0f03f264b772e8638d4f1311a2cbdfc515b7faa5:/dlls/winex11.drv/init.c#l194

--- snip ---
194 static INT X11DRV_GetDeviceCaps( PHYSDEV dev, INT cap )
195 {
196     switch(cap)
197     {
...
295     case NUMRESERVED:
296     case PHYSICALWIDTH:
297     case PHYSICALHEIGHT:
298     case PHYSICALOFFSETX:
299     case PHYSICALOFFSETY:
300     case SCALINGFACTORX:
301     case SCALINGFACTORY:
302     case VREFRESH:
303     case BLTALIGNMENT:
304         return 0;
305     default:
306         FIXME("(%p): unsupported capability %d, will return 0\n", dev->hdc,
cap );
307         return 0;
308     }
309 }
--- snip ---

Various settings are already managed with registry (setup_options,
read_registry_settings -> DefaultSettings.VRefresh).

$ sha1sum autoit-v3-setup.exe
ba7499fe9fb55438348ac013109febfc12c73437  autoit-v3-setup.exe

$ du -sh autoit-v3-setup.exe
11M    autoit-v3-setup.exe

$ wine --version
wine-1.7.9-209-gb231b4b

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list