winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
March 2008
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
4 participants
1001 discussions
Start a n
N
ew thread
Herve Chanal : cmd: Add a nicer icon.
by Alexandre Julliard
21 Mar '08
21 Mar '08
Module: wine Branch: master Commit: e9ee629da4c080716ad187fc8e5fe801be2a8b70 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e9ee629da4c080716ad187fc8…
Author: Herve Chanal <chanal_herve(a)yahoo.fr> Date: Thu Mar 20 15:02:19 2008 +0100 cmd: Add a nicer icon. --- programs/cmd/Makefile.in | 2 + programs/cmd/wcmd.ico | Bin 2238 -> 15086 bytes programs/cmd/wcmd.svg | 208 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 210 insertions(+), 0 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=e9ee629da4c080716ad18…
1
0
0
0
Herve Chanal : msiexec: Add SVG source for the icon.
by Alexandre Julliard
21 Mar '08
21 Mar '08
Module: wine Branch: master Commit: 6321e59aca72d015a4db0eb6c0d1fe00b704ad97 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6321e59aca72d015a4db0eb6c…
Author: Herve Chanal <chanal_herve(a)yahoo.fr> Date: Wed Mar 19 13:21:39 2008 +0100 msiexec: Add SVG source for the icon. --- programs/msiexec/Makefile.in | 2 + programs/msiexec/msiexec.ico | Bin 19622 -> 15086 bytes programs/msiexec/msiexec.svg | 212 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 214 insertions(+), 0 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=6321e59aca72d015a4db0…
1
0
0
0
Alexandre Julliard : configure: Add rules for rebuilding icons in maintainer mode.
by Alexandre Julliard
21 Mar '08
21 Mar '08
Module: wine Branch: master Commit: dc4a475fa048652f9bc334a3b89dd56f40c9a76b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dc4a475fa048652f9bc334a3b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 20 16:09:18 2008 +0100 configure: Add rules for rebuilding icons in maintainer mode. --- Make.rules.in | 11 ++++++- configure | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- configure.ac | 8 +++++ 3 files changed, 115 insertions(+), 2 deletions(-) diff --git a/Make.rules.in b/Make.rules.in index b224ef1..78105d3 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -53,6 +53,8 @@ MV = mv LINT = @LINT@ LINTFLAGS = @LINTFLAGS@ FONTFORGE = @FONTFORGE@ +RSVG = @RSVG@ +ICOTOOL = @ICOTOOL@ INCLUDES = -I$(SRCDIR) -I. -I$(TOPSRCDIR)/include -I$(TOPOBJDIR)/include $(EXTRAINCL) EXTRACFLAGS = @EXTRACFLAGS@ ALLCFLAGS = $(INCLUDES) $(DEFS) $(DLLFLAGS) $(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) $(MODCFLAGS) @@ -125,7 +127,7 @@ LINTS = $(C_SRCS:.c=.ln) # Implicit rules -.SUFFIXES: .mc .rc .mc.rc .res .res.o .spec .spec.o .idl .tlb .h .y .l .tab.c .tab.h .yy.c .ok .sfd .ttf .man.in .man _c.c _i.c _p.c _s.c +.SUFFIXES: .mc .rc .mc.rc .res .res.o .spec .spec.o .idl .tlb .h .y .l .tab.c .tab.h .yy.c .ok .sfd .ttf .man.in .man _c.c _i.c _p.c _s.c @MAINTAINER_MODE@ .svg .ico .c.o: $(CC) -c $(ALLCFLAGS) -o $@ $< @@ -184,6 +186,13 @@ LINTS = $(C_SRCS:.c=.ln) .man.in.man: LC_ALL=C sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $< >$@ || ($(RM) $@ && false) +.svg.ico: + $(RSVG) -w 16 -h 16 -f png $< $*-16.png + $(RSVG) -w 32 -h 32 -f png $< $*-32.png + $(RSVG) -w 48 -h 48 -f png $< $*-48.png + $(ICOTOOL) -c -o $@ $*-16.png $*-32.png $*-48.png + $(RM) $*-16.png $*-32.png $*-48.png + # 'all' target first in case the enclosing Makefile didn't define any target all: diff --git a/configure b/configure index 8836c99..37e1061 100755 --- a/configure +++ b/configure @@ -704,6 +704,8 @@ LINT LINTFLAGS FONTFORGE PKG_CONFIG +RSVG +ICOTOOL PRELINK LIBPTHREAD XLIB @@ -6352,6 +6354,98 @@ fi done test -n "$PKG_CONFIG" || PKG_CONFIG="false" +for ac_prog in rsvg +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_RSVG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$RSVG"; then + ac_cv_prog_RSVG="$RSVG" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RSVG="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +RSVG=$ac_cv_prog_RSVG +if test -n "$RSVG"; then + { echo "$as_me:$LINENO: result: $RSVG" >&5 +echo "${ECHO_T}$RSVG" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + test -n "$RSVG" && break +done +test -n "$RSVG" || RSVG="false" + +for ac_prog in icotool +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } +if test "${ac_cv_prog_ICOTOOL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ICOTOOL"; then + ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ICOTOOL="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ICOTOOL=$ac_cv_prog_ICOTOOL +if test -n "$ICOTOOL"; then + { echo "$as_me:$LINENO: result: $ICOTOOL" >&5 +echo "${ECHO_T}$ICOTOOL" >&6; } +else + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } +fi + + + test -n "$ICOTOOL" && break +done +test -n "$ICOTOOL" || ICOTOOL="false" + + +if test "${enable_maintainer_mode+set}" = set +then + if test "$RSVG" = "false"; then wine_warnings="$wine_warnings|rsvg is missing, icons can't be rebuilt."; fi + if test "$ICOTOOL" = "false"; then wine_warnings="$wine_warnings|icotool is missing, icons can't be rebuilt."; fi +fi case $host_cpu in *i[3456789]86*) @@ -23180,6 +23274,8 @@ LINT!$LINT$ac_delim LINTFLAGS!$LINTFLAGS$ac_delim FONTFORGE!$FONTFORGE$ac_delim PKG_CONFIG!$PKG_CONFIG$ac_delim +RSVG!$RSVG$ac_delim +ICOTOOL!$ICOTOOL$ac_delim PRELINK!$PRELINK$ac_delim LIBPTHREAD!$LIBPTHREAD$ac_delim XLIB!$XLIB$ac_delim @@ -23249,7 +23345,7 @@ LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 diff --git a/configure.ac b/configure.ac index daa7e78..abf8374 100644 --- a/configure.ac +++ b/configure.ac @@ -188,6 +188,14 @@ AC_SUBST(LINTFLAGS) dnl Check for various programs AC_CHECK_PROGS(FONTFORGE, fontforge, false) AC_CHECK_PROGS(PKG_CONFIG, pkg-config, false) +AC_CHECK_PROGS(RSVG, rsvg, false) +AC_CHECK_PROGS(ICOTOOL, icotool, false) + +if test "${enable_maintainer_mode+set}" = set +then + if test "$RSVG" = "false"; then WINE_WARNING([rsvg is missing, icons can't be rebuilt.]); fi + if test "$ICOTOOL" = "false"; then WINE_WARNING([icotool is missing, icons can't be rebuilt.]); fi +fi case $host_cpu in *i[[3456789]]86*)
1
0
0
0
Michael Moss : kernel32/tests: Fix false positive file notification tests.
by Alexandre Julliard
20 Mar '08
20 Mar '08
Module: wine Branch: master Commit: ef7c4a8b6daf783773a9ca0f29602d3afab13abf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ef7c4a8b6daf783773a9ca0f2…
Author: Michael Moss <mmoss(a)google.com> Date: Wed Mar 19 15:09:41 2008 -0700 kernel32/tests: Fix false positive file notification tests. --- dlls/kernel32/tests/change.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/kernel32/tests/change.c b/dlls/kernel32/tests/change.c index bb1f73d..b698eaa 100644 --- a/dlls/kernel32/tests/change.c +++ b/dlls/kernel32/tests/change.c @@ -39,12 +39,14 @@ static DWORD CALLBACK NotificationThread(LPVOID arg) { HANDLE change = (HANDLE) arg; + BOOL notified = FALSE; BOOL ret = FALSE; DWORD status; status = WaitForSingleObject(change, 100); if (status == WAIT_OBJECT_0 ) { + notified = TRUE; ret = FindNextChangeNotification(change); } @@ -52,7 +54,7 @@ static DWORD CALLBACK NotificationThread(LPVOID arg) ok( ret, "FindCloseChangeNotification error: %d\n", GetLastError()); - ExitThread((DWORD)ret); + ExitThread((DWORD)notified); } static HANDLE StartNotificationThread(LPCSTR path, BOOL subtree, DWORD flags) @@ -150,7 +152,8 @@ static void test_FindFirstChangeNotification(void) thread = StartNotificationThread(dirname1, FALSE, FILE_NOTIFY_CHANGE_DIR_NAME); ret = MoveFileA(dirname1, dirname2); ok(ret, "MoveFileA error: %d\n", GetLastError()); - ok(FinishNotificationThread(thread), "Missed notification\n"); + ret = FinishNotificationThread(thread); + ok(!ret, "Unexpected notification\n"); /* What if we remove the directory we registered notification for? */ thread = StartNotificationThread(dirname2, FALSE, FILE_NOTIFY_CHANGE_DIR_NAME);
1
0
0
0
Luis Javier Merino : wined3d: BltFast dealing correctly with overlapping src and dest.
by Alexandre Julliard
20 Mar '08
20 Mar '08
Module: wine Branch: master Commit: 3bb1ea3d34bc69a575b0418da89aabfe7e51fe32 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3bb1ea3d34bc69a575b0418da…
Author: Luis Javier Merino <ninjalj(a)gmail.com> Date: Wed Mar 19 03:44:37 2008 +0100 wined3d: BltFast dealing correctly with overlapping src and dest. --- dlls/wined3d/surface_base.c | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/surface_base.c b/dlls/wined3d/surface_base.c index babb49f..14de5a5 100644 --- a/dlls/wined3d/surface_base.c +++ b/dlls/wined3d/surface_base.c @@ -1613,13 +1613,28 @@ IWineD3DBaseSurfaceImpl_BltFast(IWineD3DSurface *iface, else { int width = w * bpp; + INT sbufpitch, dbufpitch; + TRACE("NO color key copy\n"); + /* Handle overlapping surfaces */ + if (sbuf < dbuf) + { + sbuf += (h - 1) * slock.Pitch; + dbuf += (h - 1) * dlock.Pitch; + sbufpitch = -slock.Pitch; + dbufpitch = -dlock.Pitch; + } + else + { + sbufpitch = slock.Pitch; + dbufpitch = dlock.Pitch; + } for (y = 0; y < h; y++) { /* This is pretty easy, a line for line memcpy */ - memcpy(dbuf, sbuf, width); - sbuf += slock.Pitch; - dbuf += dlock.Pitch; + memmove(dbuf, sbuf, width); + sbuf += sbufpitch; + dbuf += dbufpitch; } TRACE("Copy done\n"); }
1
0
0
0
Lei Zhang : comctl32: Fix listview redraw when deleting items.
by Alexandre Julliard
20 Mar '08
20 Mar '08
Module: wine Branch: master Commit: 03f18eb425b16ad5388018e8ed1d59061591c77f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=03f18eb425b16ad5388018e8e…
Author: Lei Zhang <thestig(a)google.com> Date: Wed Mar 19 17:49:50 2008 -0700 comctl32: Fix listview redraw when deleting items. --- dlls/comctl32/listview.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 706e92b..abe1470 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -4642,8 +4642,9 @@ static void LISTVIEW_ScrollOnInsert(LISTVIEW_INFO *infoPtr, INT nItem, INT dir) */ static BOOL LISTVIEW_DeleteItem(LISTVIEW_INFO *infoPtr, INT nItem) { - UINT uView = infoPtr->dwStyle & LVS_TYPEMASK; LVITEMW item; + const UINT uView = infoPtr->dwStyle & LVS_TYPEMASK; + const BOOL is_icon = (uView == LVS_SMALLICON || uView == LVS_ICON); TRACE("(nItem=%d)\n", nItem); @@ -4658,7 +4659,7 @@ static BOOL LISTVIEW_DeleteItem(LISTVIEW_INFO *infoPtr, INT nItem) if (!notify_deleteitem(infoPtr, nItem)) return FALSE; /* we need to do this here, because we'll be deleting stuff */ - if (uView == LVS_SMALLICON || uView == LVS_ICON) + if (is_icon) LISTVIEW_InvalidateItem(infoPtr, nItem); if (!(infoPtr->dwStyle & LVS_OWNERDATA)) @@ -4677,7 +4678,7 @@ static BOOL LISTVIEW_DeleteItem(LISTVIEW_INFO *infoPtr, INT nItem) DPA_Destroy(hdpaSubItems); } - if (uView == LVS_SMALLICON || uView == LVS_ICON) + if (is_icon) { DPA_DeletePtr(infoPtr->hdpaPosX, nItem); DPA_DeletePtr(infoPtr->hdpaPosY, nItem); @@ -4687,7 +4688,8 @@ static BOOL LISTVIEW_DeleteItem(LISTVIEW_INFO *infoPtr, INT nItem) LISTVIEW_ShiftIndices(infoPtr, nItem, -1); /* now is the invalidation fun */ - LISTVIEW_ScrollOnInsert(infoPtr, nItem, -1); + if (!is_icon) + LISTVIEW_ScrollOnInsert(infoPtr, nItem, -1); return TRUE; }
1
0
0
0
Lei Zhang : comctl32: Correct listview hittest check to include the state rect.
by Alexandre Julliard
20 Mar '08
20 Mar '08
Module: wine Branch: master Commit: 74f2f09295175fdf813e2808eadd5934e18c71d2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=74f2f09295175fdf813e2808e…
Author: Lei Zhang <thestig(a)google.com> Date: Wed Mar 19 17:11:56 2008 -0700 comctl32: Correct listview hittest check to include the state rect. --- dlls/comctl32/listview.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 524d845..706e92b 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -6256,7 +6256,10 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht, if (uView == LVS_REPORT) rcBounds = rcBox; else - UnionRect(&rcBounds, &rcIcon, &rcLabel); + { + UnionRect(&rcBounds, &rcIcon, &rcLabel); + UnionRect(&rcBounds, &rcBounds, &rcState); + } TRACE("rcBounds=%s\n", wine_dbgstr_rect(&rcBounds)); if (!PtInRect(&rcBounds, opt)) return -1;
1
0
0
0
Lei Zhang : comctl32: Redraw listview after changing extended styles.
by Alexandre Julliard
20 Mar '08
20 Mar '08
Module: wine Branch: master Commit: da98243ea13636a826bc94bf85853fd7bad62d50 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=da98243ea13636a826bc94bf8…
Author: Lei Zhang <thestig(a)google.com> Date: Wed Mar 19 15:41:12 2008 -0700 comctl32: Redraw listview after changing extended styles. --- dlls/comctl32/listview.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index b3445d9..524d845 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -7034,6 +7034,7 @@ static DWORD LISTVIEW_SetExtendedListViewStyle(LISTVIEW_INFO *infoPtr, DWORD dwM SetWindowLongW(infoPtr->hwndHeader, GWL_STYLE, dwStyle); } + LISTVIEW_InvalidateList(infoPtr); return dwOldExStyle; }
1
0
0
0
Lei Zhang : comctl32: Implement listview checkbox toggle.
by Alexandre Julliard
20 Mar '08
20 Mar '08
Module: wine Branch: master Commit: fe966335fd7d808f6055649ee3796bf82eae566c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fe966335fd7d808f6055649ee…
Author: Lei Zhang <thestig(a)google.com> Date: Wed Mar 19 15:01:25 2008 -0700 comctl32: Implement listview checkbox toggle. --- dlls/comctl32/listview.c | 25 ++++++++++++++++--------- dlls/comctl32/tests/listview.c | 2 +- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 9f4bd7b..b3445d9 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -1353,6 +1353,19 @@ static inline BOOL is_autoarrange(const LISTVIEW_INFO *infoPtr) (uView == LVS_ICON || uView == LVS_SMALLICON); } +static void toggle_checkbox_state(LISTVIEW_INFO *infoPtr, INT nItem) +{ + DWORD state = STATEIMAGEINDEX(LISTVIEW_GetItemState(infoPtr, nItem, LVIS_STATEIMAGEMASK)); + if(state == 1 || state == 2) + { + LVITEMW lvitem; + state ^= 3; + lvitem.state = INDEXTOSTATEIMAGEMASK(state); + lvitem.stateMask = LVIS_STATEIMAGEMASK; + LISTVIEW_SetItemState(infoPtr, nItem, &lvitem); + } +} + /******** Internal API functions ************************************/ static inline COLUMN_INFO * LISTVIEW_GetColumnInfo(const LISTVIEW_INFO *infoPtr, INT nSubItem) @@ -8283,6 +8296,8 @@ static LRESULT LISTVIEW_KeyDown(LISTVIEW_INFO *infoPtr, INT nVirtualKey, LONG lK { case VK_SPACE: nItem = infoPtr->nFocusedItem; + if (infoPtr->dwLvExStyle & LVS_EX_CHECKBOXES) + toggle_checkbox_state(infoPtr, infoPtr->nFocusedItem); break; case VK_RETURN: @@ -8475,15 +8490,7 @@ static LRESULT LISTVIEW_LButtonDown(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, IN { if ((infoPtr->dwLvExStyle & LVS_EX_CHECKBOXES) && (lvHitTestInfo.flags & LVHT_ONITEMSTATEICON)) { - DWORD state = STATEIMAGEINDEX(LISTVIEW_GetItemState(infoPtr, nItem, LVIS_STATEIMAGEMASK)); - if(state == 1 || state == 2) - { - LVITEMW lvitem; - state ^= 3; - lvitem.state = INDEXTOSTATEIMAGEMASK(state); - lvitem.stateMask = LVIS_STATEIMAGEMASK; - LISTVIEW_SetItemState(infoPtr, nItem, &lvitem); - } + toggle_checkbox_state(infoPtr, nItem); return 0; } diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c index 99c026f..ad82579 100644 --- a/dlls/comctl32/tests/listview.c +++ b/dlls/comctl32/tests/listview.c @@ -564,7 +564,7 @@ static void test_checkboxes(void) item.mask = LVIF_STATE; item.stateMask = 0xffff; r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item); - todo_wine ok(item.state == 0x2aab, "state %x\n", item.state); + ok(item.state == 0x2aab, "state %x\n", item.state); r = SendMessage(hwnd, WM_KEYDOWN, VK_SPACE, 0); expect(0, r);
1
0
0
0
Lei Zhang : comctl32: Add listview checkbox toggle test.
by Alexandre Julliard
20 Mar '08
20 Mar '08
Module: wine Branch: master Commit: 778c04db079d3955bcea263bb5693c624318bf75 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=778c04db079d3955bcea263bb…
Author: Lei Zhang <thestig(a)google.com> Date: Wed Mar 19 14:58:42 2008 -0700 comctl32: Add listview checkbox toggle test. --- dlls/comctl32/tests/listview.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c index f988ab9..99c026f 100644 --- a/dlls/comctl32/tests/listview.c +++ b/dlls/comctl32/tests/listview.c @@ -539,6 +539,44 @@ static void test_checkboxes(void) r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item); ok(item.state == 0x1aaa, "state %x\n", item.state); + /* Toggle checkbox tests (bug 9934) */ + memset (&item, 0xcc, sizeof(item)); + item.mask = LVIF_STATE; + item.iItem = 3; + item.iSubItem = 0; + item.state = LVIS_FOCUSED; + item.stateMask = LVIS_FOCUSED; + r = SendMessage(hwnd, LVM_SETITEM, 0, (LPARAM) &item); + expect(1, r); + + item.iItem = 3; + item.mask = LVIF_STATE; + item.stateMask = 0xffff; + r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item); + ok(item.state == 0x1aab, "state %x\n", item.state); + + r = SendMessage(hwnd, WM_KEYDOWN, VK_SPACE, 0); + expect(0, r); + r = SendMessage(hwnd, WM_KEYUP, VK_SPACE, 0); + expect(0, r); + + item.iItem = 3; + item.mask = LVIF_STATE; + item.stateMask = 0xffff; + r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item); + todo_wine ok(item.state == 0x2aab, "state %x\n", item.state); + + r = SendMessage(hwnd, WM_KEYDOWN, VK_SPACE, 0); + expect(0, r); + r = SendMessage(hwnd, WM_KEYUP, VK_SPACE, 0); + expect(0, r); + + item.iItem = 3; + item.mask = LVIF_STATE; + item.stateMask = 0xffff; + r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item); + ok(item.state == 0x1aab, "state %x\n", item.state); + DestroyWindow(hwnd); }
1
0
0
0
← Newer
1
...
39
40
41
42
43
44
45
...
101
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
Results per page:
10
25
50
100
200