Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 317210 Details for
Bug 423465
games-board/hexxagon-1.0.1: fails to build with gcc 4.7
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix gcc-4.7.1 compile failure
hexxagon-gcc-4.7.patch (text/plain), 1.60 KB, created by
Dan Johnson
on 2012-07-05 04:24:21 UTC
(
hide
)
Description:
Patch to fix gcc-4.7.1 compile failure
Filename:
MIME Type:
Creator:
Dan Johnson
Created:
2012-07-05 04:24:21 UTC
Size:
1.60 KB
patch
obsolete
>--- src/gui/gtkhexxagonboard.cpp.bak 2012-07-05 00:09:12.185718612 -0400 >+++ src/gui/gtkhexxagonboard.cpp 2012-07-05 00:19:08.154713683 -0400 >@@ -120,8 +120,8 @@ > posx += width * offset / 2; > posy += height * offset / 2; > >- int x = (int) round(posx) + xoff; >- int y = (int) round(posy) + yoff; >+ int displayx = (int) round(posx) + xoff; >+ int displayy = (int) round(posy) + yoff; > > int type; > LookUp lookup(bbMask); >@@ -155,10 +155,10 @@ > > Glib::RefPtr<Gdk::GC> gc = Gdk::GC::create(back); > gc->set_clip_mask(mask[type]); >- gc->set_clip_origin(x, y); >+ gc->set_clip_origin(displayx, displayy); > > if(back && map_board[type]) >- back->draw_drawable(gc, map_board[type], 0, 0, x, y, -1, -1); >+ back->draw_drawable(gc, map_board[type], 0, 0, displayx, displayy, -1, -1); > > cellNo++; > } >@@ -205,12 +205,12 @@ > posx += width * offset / 2; > posy += height * offset / 2; > >- int x = (int) round(posx + w / 2) + xoff; >- int y = (int) round(posy + h / 2) + yoff; >+ int displayx = (int) round(posx + w / 2) + xoff; >+ int displayy = (int) round(posy + h / 2) + yoff; > > // Now we got the place for cell cellNo >- double dx = inx - x; >- double dy = iny - y; >+ double dx = inx - displayx; >+ double dy = iny - displayy; > double a = (w/2)*(w/2); > double b = (h/2)*(h/2); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 423465
: 317210