mail[Wesnoth-commits] r44165 - in /trunk: data/core/images/terrain/foreground.png src/display.cpp src/display.hpp src/menu_events.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by alinktomine on July 15, 2010 - 00:13:
Author: alink
Date: Thu Jul 15 00:13:04 2010
New Revision: 44165

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44165&view=rev
Log:
New debug command ":foreground" useful to better separate background and 
foreground
terrains and spot any error there. Currently use an half-transparent layer of 
snow
recovering the background, but a more flashy image may be needed (edit 
terrain/foreground.png).

Added:
    trunk/data/core/images/terrain/foreground.png
Modified:
    trunk/src/display.cpp
    trunk/src/display.hpp
    trunk/src/menu_events.cpp

Added: trunk/data/core/images/terrain/foreground.png
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/images/terrain/foreground.png?rev=44165&view=auto
==============================================================================
--- trunk/data/core/images/terrain/foreground.png (added)
+++ trunk/data/core/images/terrain/foreground.png Thu Jul 15 00:13:04 2010
@@ -1,0 +1,32 @@
+‰PNG
+
+
IHDRHHUí³G
+OiCCPPhotoshop ICC profilexڝSgTSé=÷ÞôBKˆ€”KoR RB‹€‘&*!  
Jˆ!¡ÙQÁEEÈ ˆŽŽ€ŒQ,Š
+Øä!¢Žƒ£ˆŠÊûá{£kÖ¼÷æÍþµ×>ç¬ó³ÏÀ–H3Q5€©BàƒÇÄÆáä.@
+$p³d!sý#ø~<<+"À¾xÓÀM›À0‡ÿêB™\€„Àt‘8K€@zŽB¦@F€˜&S `ËcbãP-`'æӀø™{[”! ‘
 eˆDh;¬ÏVŠEX0fKÄ9Ø-0IWfH°·Àβ
0Qˆ…){`È##x„™FòW<ñ+®ç*x™²<¹$9E[-qWW.(ÎI+6aaš@.Ây™24àóÌ ‘àƒóýxήÎÎ6Ž¶_-ê¿ÿ"bbãþåÏ«p@át~Ñþ,/³€;€mþ¢%îh^
 u÷‹f²@µ éÚWópø~<<E¡¹ÙÙåääØJÄB[aÊW}þgÂ_ÀWýlù~<ü÷õà¾â$2]GøàÂÌôL¥ϒ     
 
„bÜæGü·ÿüÓ"ÄIb¹X*ãQqŽDšŒó2¥"‰B’)Å%Òÿdâß,û>ß5°j>{‘-¨]cöK'XtÀâ÷ò»oÁÔ(€hƒáÏwÿï?ýG %€fI’q^D$.Tʳ?ÇD *°AôÁ,ÀÁÜÁ
ü`6„B$ÄÂBB
+d€r`)¬‚B(†Í°*`/Ô@4ÀQh†“p.ÂU¸=púažÁ(¼   AÈa!ڈbŠX#Ž™…ø!ÁH‹$ 
ɈQ"K‘5H1RŠT UHò=r9‡\Fº‘;È2‚ü†¼G1”²Q=Ô
µC¹¨7„F¢Ðdt1š ›Ðr´=Œ6¡çЫhڏ>CÇ0Àè3Äl0.ÆÃB±8,   “c˱"¬
«Æ°V¬»‰õcϱwEÀ      6wB aAHXLXNØH¨ $4Ú  7       
„QÂ'"“¨K´&ºùÄb21‡XH,#֏/{ˆCÄ7$‰C2'¹I±¤TÒÒFÒnR#é,©›4H#“ÉÚdk²9”, 
+ȅääÃä3ää!ò[
+b@q¤øSâ(RÊjJåå4åe˜2AU£šRݨ¡T5ZB­¡¶R¯Q‡¨4uš9̓IK¥­¢•Óhh÷i¯ètºݕN—ÐWÒËéGè—èôw

†ƒÇˆg(›gw¯˜L¦ӋÇT071ë˜ç™™oUX*¶*|‘Ê
+•J•&•*/T©ª¦ªÞªUóUËT©^S}®FU3Sã©      
Ԗ«UªPëSSg©;¨‡ªg¨oT?¤~Yý‰YÃLÃOC¤Q ±_ã¼Æ c³x,!k
«†u5Ä&±ÍÙ|v*»˜ý»‹=ª©¡9C3J3W³Ró”f?ã˜qøœtN     
ç(§—ó~ŠÞï)â)¦4L¹1e\kª–—–X«H«Q«Gë½6®í§¦½E»YûAÇJ'\'GgÎçSÙSݧ
+§M=:õ®.ªk¥¡»Dw¿n§î˜ž¾^€žLo§Þy½çú}/ýTýmú§õGX³$Û
Î<Å5qo</ÇÛñQC]Ã@C¥a•a—á„‘¹Ñ<£ÕFFŒiÆ\ã$ãmÆmÆ£&&!&KMêMîšRM¹¦)¦;L;LÇÍÌÍ¢Í֙5›=1×2ç›ç›×›ß·`ZxZ,¶¨¶¸eI²äZ¦Yn…Z9Y¥XUZ]³F­­%Ö»­»§§¹N“N«žÖgðñ¶É¶©·°åØÛ®¶m¶}agbg·Å®Ã“}º}ý=
‡Ù«Z~s´r:V:ޚΜî?}Åô–é/gXÏÏØ3ã¶Ë)ÄiS›ÓGgg¹sƒóˆ‹‰K‚Ë.—>.›ÆÝȽäJtõq]ázÒõ›³›Âí¨Û¯î6îiî‡ÜŸÌ4Ÿ)žY3sÐÃÈCàQåÑ?Ÿ•0k߬~OCOgµç#/c/‘W­×°·¥wª÷aï>ö>rŸã>ã<7Þ2ÞY_Ì7À·È·ËOÃož_…ßC#ÿdÿzÿѧ€%g‰A[ûøz|!¿Ž?:Ûeö²ÙíAŒ ¹AA‚­‚åÁ­!hÈ쐭!÷ç˜Î‘Îi…P~èÖÐaæa‹Ã~

'…‡…W†?ŽpˆXÑ1—5wÑÜCsßDúD–Dޛg1O9¯-J5*>ª.j<Ú7º4º?Æ.fYÌÕXXIlK9.*®6nl¾ßüíó‡ââ
ã{˜/È]py¡ÎÂô…§©.,:–@LˆN8”ðA*¨Œ%òw%Ž
+yÂÂg"/Ñ6шØC\*NòH*Mz’쑼5y$Å3¥,幄'©¼L
Lݛ:žšv m2=:½1ƒ’‘qBª!M“¶gêgæfvˬe…²þÅn‹·/•Ék³¬Y-
+¶B¦èTZ(×*²geWf¿Í‰Ê9–«ž+Íí̳Êې7œïŸÿíÂᒶ¥†KW-X潬j9²<qyÛ
+ã+†V¬<¸Š¶*mÕO«íW—®~½&zMk^ÁʂÁµkëU
+å…}ëÜ×í]OX/Yßµaú†>‰Š®Û—Ø(Üxå‡oÊ¿™Ü”´©«Ä¹dÏfÒféæÞ-ž[–ª—æ—n
ÙÚ´
ßV´íõöEÛ/—Í(Û»ƒ¶C¹£¿<¸¼e§ÉÎÍ;?T¤TôTúT6îÒݵa×ønÑî{¼ö4ìÕÛ[¼÷ý>ɾÛUUMÕfÕeûIû³÷?®‰ªéø–ûm]­NmqíÇÒý#¶×¹ÔÕÒ=TRÖ+ëGǾþïw-
6
UœÆâ#pDyäé÷    ß÷
:ÚvŒ{¬áÓvg/jBšòšF›Sšû[b[ºOÌ>ÑÖêÞzüGÛœ4<YyJóTÉiÚé‚Ó“gòό•}~.ùÜ`Û¢¶{çcÎßjoïºtáÒEÿ‹ç;¼;Î\ò¸tò²ÛåW¸Wš¯:_mêtê<þ“ÓOÇ»œ»š®¹\k¹îz½µ{f÷éž7ÎÝô½yñÿÖ՞9=ݽózo÷Å÷õßÝ~r'ýÎË»Ùw'î­¼O¼_ô@íAÙC݇Õ?[þÜØïÜjÀw óÑÜG÷…ƒÏþ‘õC™Ë†
†ëž8>99â?rýéü§CÏdÏ&žþ¢þË®/~øÕë×Îјѡ—ò—“¿m|¥ýêÀë¯ÛÆÂƾÉx31^ôVûíÁwÜwï£ßOä|
 
(ÿhù±õSЧû“““ÿ˜óüc3-ÛsIDATxÚÍ\Ùr#Wr=y·*,$A²[›ÇÇ<ú4úÿ<;á;¼ŽÇR/Ü@¨ºK¦òÞ"Àf·[Ý-ɌPH!@UV.çœ<$"ø?¯¯o×À°†à­fìc3‚³˜KÀ¨¾žE¬ˆ™1dÆIga9úœÂ
  lDŽÛ!#XÂÙ, ³craœ¯Î~ø÷E_"@¯¯nÖD€3†Y‹ÇBï
DcœÑ C@ïˆDôÁÏ
ÖXC8|U.Œ]Ìø›¯.?;HîKDÙZCˆ€€RÑ'}Ú;½)ìR™2ì$X£¯{_p˜Yߓ¨°Dè-d¦À´Ïˆ9£°`þ_dÐ?þ׫õå<
 X‚!‚©O“EYKbÌØƂT§½ÃÜk©™–58ú:
°@€Œœ%øZJZj@)ŒÌˆLïÇ^ž^©}v}{ÚÃ@D`º¹!l†Œ!3
dêg}€5„Îd8kŽúË.f°Rap-—13,    –}¬E*â2õ¹š´ØgÁ˜fÞb,,ä÷Í ûûûõá͍Yÿ‰…sAÌg
ÁaÙY-cà컥±‹ÆŒ)c,Œ"³ ó‹à0RËё>ŒÌ‚1첀8킳ÈÌH™ÑyûYYôY´‹½·H…q»O¸ÛG0
.f‹ÎÔ²«¥'"Ú«ZpjÆYc°è
+杳>¸V²šŸ„R'ß>313¼5XÍü”Q1Ü      ËNûßï’Aÿú?o֋΁܏×û
€ðrpÖ;X"áhº°rѦë¡ˆàjñrÙM7w0®À5è.íe
`ˆ±à|æ1ó‰±ÀaÙYìbAp¾fëÅ'ŽýOΠe禑*Ìx¹X«c^dʎƒûÅP'XçÆ\œÅ‹E˜úP.
"-CRÿ%a~ÄV"V³€¡0ö9£ˆ`îzotÊG€!ªÙ÷fÐ뫛µ%À9í    
›!k#5„Þ:¯å3#eÁ.gŠuúà Ìا‚ÕLvëE±0RÑë 
ÎLYز(Æõ.!³ w³`ÁÁÙ:Å4Û[HaÁêìô‡ß$ƒfáñe‘µ¯ôNQð˜"ÚpïnjRëKo`­ÕQ|:«èðiaŸ
Œ1P03cH'½Dp1× šZ¾R³U*‚o™k¨ö¯øð›dЛ›»5Aƒ’Yj_Ñ÷héM¤$³èS%†Ö7èCšÁ,ŠeÈ`Ÿ¯7;܍
+öVó€Ugq>óðÎN×ÈØÑ9‹E0:ùè,Õé*rÁõ.üý÷_ÿð«fÐ_ïöX‹Ëy€% 0à­ö•ÞÈ{3rá‰O±¾>é5
 ^oG© w:þ÷‰1Aç,þ´è”»ƒ`‘v.Z¦ÁZ\.2bfä"H†°Ï‚\
+fÞâå²;z@¿J]ÝnÖ,š¾Žj  õ?fF̊hۘá
árÑ¡]èœA,‚ë]Ä},p`8£å'•ªk`á¬÷°F{Ox&KE×Öbaä\°Ï"S‘½–-ðÎB!«Ó“?ÿ*,M…
#EÂ13Æ¢Yq½K˜‡—‹ÞfÞOo,ÚÐÏ:§½‚*F:@°fjН3Gø©»°‚É}b0úà°Î*inCÔ´IX9⯒A›ûûõÓåúĺÛÃÂ<8xK˜{ûñl¸«$å‚YpèœUnUÁd»ùÆ稒Ԇgd©ۘ‘X³ò¬³:Éw½·Vòû,’
+Àñ§ï¾úóÍ ©˜„E OÆáràëÍeŒ™ÑdNá×Û·CAg    
«™Ÿjž0ùvƒÌÀý`ŒÁ˜tº¹h‰pÚû©7el”ÛX0¤"ƒE°  4ä‹fÐÍíݚñØw¼³ÓEj&iàšÄa! 
ㆠsaˆˆÊîQ“Ú´Û¥´qÝÊ¡I)¶‘S©¥Ê¬¿;MRp»‹øi3À[ƒ?^Ìœ•6Ù
+^^¬þüE2ènHðUÃ9Ä@°K»ª½PùׁxVo08oöJH¸ÚhÍQŸ3,b.x»OxHŒUgq6PqNߓ™!‰»¡ÂŒ«]ÂÕ6â¤÷¸\tðÖêCb9*ÕÏΠýëëu
Š5„YPþµ‹ÿ½QXp>ó8í,Æ¢å5󧽛‚ÖÆr¬Òj̓;҂Z6åÀ«}Æ3V3¯åTÑu®˜)f•G¼U²«šp>× 
–IŒEÿÛג܎D„?}ûâ‡ÏÊ 7»Ù&8k0w„“ž‘
+c3fôÖàâ¤ÃX5ä¹·“J¨q×TÎüHP»¸"@`³Ï?k—rÁ6      :kpºìÐÕ~6då}©È„¦O{©”à¤×É( 
8K,ÞjÀn÷        wcF0š½Ÿ•A?½¹Zë¤"$Ö.í
!80Ãô¢†®AœÃѪŠ©™þ_fAbQFς×#N‚b)ׂ35ëôï:g¦ÉÖúˆ©Ä–SF,‚+A?ǧ¿ÜRÆig1'zÛW—ç?|R9kk?!ä6¹êôbó(^)!<î!GÌü
        ß2$*·ÖQøõ2@è¼ÅÛmÄݐq1s©Ø*®É…§iåÉ 
½·ÚÿŒWŽE0$-ÃUoqqÞ+ج¯cÑ~Rý×ëëµ­ØøÕS\ÓÆ«È€³æhcÑÄ÷XxjÞ¥N¢Æéà§Í€Ug1Vÿ®ö§¦9‹`¢4,2©–3N±×.f¼ÝF¤Â8›ôŽ‹`‚ÕéXª,l3z
§§Ï3ý÷fPï*b‘Ê™cQ&>¤Q”lۘñóàpR¥UC£z3d\ï"Î:ƒ‹E?èRKÑ}<ŸM¯m6æRǺ>¤¦dÆԜ1¢~FbAï.ç¾¢q‚8iש0@Š@ù@=›A·wwkf%~DŠYö©àõCÄ<8,ƒ©ÈT'ÒÌ[tîQkŽ¹`H
 ïRV¾³T—†2ñ/zÏîkÌûº1Ø       
Ëàp>S*Ñ&_˚‡QÄE°ð†&\E-Éàª|s©¼Ž™q·Wéö9¦ÿl¥¢)Øêz—T.Xõ³à0ÖMÅIÐßÃJa<Ԛ·œö%̜;Æ8è‹Á1üËÕ}ã5Xx‹óy€·š]©6ôÛ}ҌYÈè¶$feõÞŒYìI禝ܐM‚™7Xûqôêêf}½Kè½Å›J.¶j:‘©:KpÖLk™TÊ$¾£®Ñ2Qtm>°5meGµ—Å¢2³
 
x7=ý혰K*uxgqÑ[¯u›[Dð0”Š²½5•dë°aìcÎ:3ñ7ªÔäÅùê‡f!Ó¾qt[°èl]ÉÜîŒ!X2¸Fìb®OÑ*œ¯tÀ•\o÷#,‚ûà:9גVYà7
+LBn|n,‚`      
Ë.ÀÕ&Ûzå}՟œHÌUÐ2뽝¶+á`ùØ@°2qßÉ ÿ~}½¾Ù'X¾ZwU§‰YuR/æí.a3d8K8
«y@ïá¼Þ–ê<¸Iäo{0c
DT;j+" ”‚û±ÀY£C@8k@ÆLk<-T)¤]×vL2£s]ýôD®÷vxkp?d0ŠþðÕÅÏfPÌ_-uËà*k4Á;;M!ƋEÀ·§ýT6-
šÌÚ4#gh
+N+¥±†!bŸÁóààŒ–ÖÚ*„¨¢æ֔1iù–­5„ÓYÀi“Jêç¥úÐlåˆÝ°8C 
CØnj×#Šç3÷|ýÇÏWë™7輛"\*ØSÁ>+ríœE°˜¶›˜TƒÉŒ›]ÂØà­ÁËe‡ypx»ÝEüån€3„˹Dzè,jFaZíp•$L}PÿÅ̏àÑ<.
+s)ÎM+$Å]2I­×ä¸U霝Ho°ú œ!丨½h
+WûÐŒRïvLئ‚Èífl•*_À<J7»„›}Bg•#Ï<Èì¢ö†}•eO:‡Þbp)(Æ•z
•å7ÙUD§‘BBß»#'HóõÞMSïÁ[ X
Lbàv¯ræ¾9Õ
•#´_X–GÔü=CÌ2}ÈUsîƒCgÍš¦ÚcÆý˜ Y]ïœô^°èï3«"ØY}]ېºŠ~©gh2Uي¶‡”«ho¦¾Óy{TڍÃyk¦×i×,؎Æ–Áª$
@ˆÞ9
+3Vgg?¸Öè2k/0Æ Õl„ߐHõtÑ4ö7C›mÈàræT­›nL°`
N:7\*ÆʬÓWÖßW‰VÑò3ëU€Ì€5R§ç±YªZ‡°û˜qZ—‘©4©Cßã´îîŸjAÇJ©þmÁݐ±:èöînÝ°ÇÍ^E¦Þ¾=Á[ƒ\…«¶!`Q,òz›0«Îê
Ö       ÓèƒkÓz‰7»ˆ}Ò[¥‚GëŒ74I¶íöu”Ó;8Š+—»ÛG¼ºa   øî¬Ç¢ó“bh
é®õsšõœšRJF3ðçûçó€¹NAOo¶×»„ïN–Ýc³óV—qû\¦Ñãż
+XF/ÍðDÇIÛJ`;&ôÎêfô¢TrÛåÇxßnG¼Ý&Ì=áå²ÇÜW\#ƒ@Np•‚33ö± 
V¼äÞypøËí»šáoΔ¾ÙFíAÿô—×kkT|o(Ø&µ/}So
‚3Sv´¸­S†j¦5T›Š.iKu5ÁÿS<Š)Üǂ·»„¹3x±è¼}Ö£hªjYjVŽ•Úº×뼝Lÿd=5¤Œ—çڃ¾=íS©8¤`Q·
»1a¤n|Õeª­ETÞ 
SÉã"å8µ˜jÞ3#×ß}ŒG1W¾E©‡³ø~5›D´¶Ð髙¾\ÁáPµ_AoÓÎƂ»}ÄYï0¤¢Ÿ“bÖ×¾¼8ÀA·w›ufƐÚ&APD/ÞWŸ©½JDaý}ÔµîYïàÍ»E‘ǍF“amí3¦
+fÍSˆ§€³NP6CL©²ì£rPÈ¥L˜­¹^Ûæ£õ†Ôl-¥T «‰³ÞO4¤™F¿®*£;X%Á[­ùÍE0M´Û]Đ4 
so&úà¬yÖ£«Oð-[z,¯`•u[«Í}LªM+J¦Jstí¼ÏÌom%¬YßÃÙi߇˜
+J.¦€ÝλÉ
RªH7w4ÝkÁÆ9AŽ¸Ø¿ÿ|µf^AÜí>áÕ6¡3À÷ç3œö¾6My‡™?õ(–Â蝮‰&tÜ$Zc¨        
ƒ›.ݫȕK©*¦6Uo•WåRª`†êšÍ•õëvÖ"àtª^­Ÿeúâ¶nd©^«ûÁ°X=ÏŶ1ãf(ŠYDðê~ÄùÌãç3¬æJ^ÇÂH)«ÉÀ™w<Š¥zWó0•B÷¦ö¡Â‚ÍøhºZ‹³ÞãtæU§&7)¦â§˜îöI×Íbð0&¦ËnBçgÅ˜‹Â<¾ŽEó>l†g-¬Ó

€û*¶5¥tõ!=è竛õ.ñ¤øŸT¿!×¾³‹YÝUîlŷۄ"À×'Îg^‰à{<ŠMÐjëgíd^ 'Å&Êÿ´pµÓÏhÓ²wߞtXzìm®ö¹»}Ba]Gµ\[CY"8g±3Þl•Òožl8ÞifÞ¡w2Ý\,‚,Z玀UÿÈyÚHef\̽N?Å
 bPŠLôäУ8¶îÔ
¦þLô¼G»þ—Kso±èÜ4U\Te¹*Cf\ÌÜÄÓö¹`LezíØåÍ6⬳Òy‹øŒóãYMúæn³æR 
DØ'F°4©qífŸzwU>˜Uâû<Š³É\‰£@¿Ï£Ø‚RíÂETÑ,Ì0’J§}eë3o&×ÙI÷8H†T°ª3yí!@êy‰Eðí‹ó?J“Ö±lÀ¥`Ì,J4]Õso¬y^}í±0=Šd€¹W¨0

=£Þ=ãQdQæ·:‘X3G0äYðj›ðï×;|¿êñ§‹2k¦.;§í¡^+aÈ›mÄ‘œöËΡTmÌå—íÅþçÍõzÌí¤Žn+½%Ü¡ê7¥b•ôģاGà©<õ(¶^CæÑ£¸N;‹¿=ŸOªâ¡/fÆC,¸ÙE̽ÁÅ<à!tÎNë'\W»#¥Tê¶CP…¹ËÕُ¿h/æ¬Á¬ó“Þ£:á~ÌXxƒÓÞÀXƒÄ‚`µi·5‹ÀàjƒibÕ¡üÐàÿõn¬^Cƒ¹7H¬g.†"Xvçs}b5§fn.Øì•ßýÝÅû¤4bV]ݏ1#¦ŒEp“RœˆˆŽû2™µ.WŸ°›uu³nâH±Ñ˜
VõˆSC»OË®!aW‰àS¼4d×6‘Á9FqÎÜésÖÀO<JϜÕÉx´Þ®û-=ãÁ>\oG©Å¯ó½%ïÀ"r»Ï¸Û²¬Sm,¾¹<ÿñ“vóí‰5W¼%à|æ«B§Ƭ–ßћ‚3öÙÕNfåbÎ.zÅÜÛiËpèYÌÌØ&Æy3Ùô*áM•i`ÿp®Û•Æ»Œ!alö1V½Ç,Ø®¡>ÚôÏ}³¾˜{øjdÀ3>E¼ÞñüºÈ¶£ž±fœÍ;g¦4o%Ú6½Ýa_-Þ
 x§ä˜€»A1YU    W¯ÊÂRUdÌ
_§bÌEb‘){Þ×{>Úô]ÕFڈo¦ï¶E êk‹·Ü¾y7•lFƒ›]ÄíP°ð*Sg­ºÏP—Þ[0›!ãÍV`iD0U^1mÙ'bššt
+ØÊçË`P öÎ™‰~¶Gñn³Yg–w<Š¨¥P¤5^Ø¥–ÙÌÛzúïØ£è+1ð(æª#»jò´Un=œ€åàxU»‹¦R¦\`Å>e©N±5x…_]¬~ü"Emˆ™´q¶%]ÊEo·
       
W»°¨L5óŠ~Σ8üEK‚“Þ#×Eâõ.j)͕ˆêÀNò„ÔõN®­!ÚY]vºº³×æžß雟í“V½HMÝmñ¶O
+ÝcaŒ¬–Û\ôhÔÎú#÷Æ/õ(Ɣq=Œ)ã´÷8éÜGy*Êí2C¸Xøv:¥0¶c2÷͋?æ¾?Ú'}½‹ð$“Ad•$÷I½;÷Q§Üw'g½¯Nwšší§x’Ìå<|´GqŸ
+†¬ûýÞ8G˜º]}õ±–˜?þøÅ/:«ñêêf}¸¹,ò\=~ÔðñïáQ¼3?YH
+s=Ýøh”úöÅù¯sV£­›òÖô§eÂòûx—ÕmÖöò±0ŔÅ6¯¥ý¸ÉõYçÅ6›Íúpjüô(¾~ˆØ§‚yû¶Ö¾t1óøþëË_÷¼ØXtóa©J
¿²G1å2MÁöuœž÷(¾ÞFìb·„…
WµS@èDϟÍÞã"ûâgV¾ºYÿŘœQ}©y{ÇG-›kþ§Í€X/çó x¨õ¿ŠÙΫ3«™5~mâÒ.ç1«„áèXÉL…ñz3ãb®ÇяÉ1ás>ùÜüOooÖÍQÖ<ŠÎÚÉ,¥¥Ïó(6ÝyBÜ­4Y°‹EnZÂIçÞQ
žÒ¢óßúÜ<ÜîÆêÖ`ôÞ©µ¤våy°ŸìQÎ"¸ÃŠ2•Øä$ë‚wN*æÂjó.õ»AÎë
€ûéí:T×[3¹³šTš>Á£(u¿Öו“šxHÆj0OŽk>Ôuù¡GñSzÏÉ ™W/c;Õ3$Õ°ÛRnHºoú%Å1ódÛµD z˜×œΣؚñ²óXvþÈ£ø»ô Ã^Ôl&Sa\m#6ƒú‡¾>é±G±æåši-A¶cšpOï­1ò(¾¼Xý¾ßÔ{;
 
èW»ˆÛ}ªß)æñb`¾€Gñj›°jå;éÆ"èýÇyñ{güþZÇ"p$“GÑT\¬›ÔÏñ(fÖߏ¹<îÖÔÇç<Šàò|ÑÛù3ðráápF/n;fÐò(¶o^èªyëðKÝ=ŠÛ1á¤÷puuôEîíK}MàÝæ~ÝÎÑÿ^ÅoN:œÌÆ̟ýÝeíçԙW»H„²QIEND®B`‚

Modified: trunk/src/display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=44165&r1=44164&r2=44165&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Thu Jul 15 00:13:04 2010
@@ -73,6 +73,8 @@
        size_t sunset_timer = 0;
 
        bool benchmark = false;
+
+       bool debug_foreground = false;
 }
 
 int display::last_zoom_ = SmallZoom;
@@ -802,6 +804,11 @@
        benchmark = !benchmark;
 }
 
+void display::toggle_debug_foreground()
+{
+       debug_foreground = !debug_foreground;
+}
+
 void display::flip()
 {
        if(video().faked()) {
@@ -1978,6 +1985,7 @@
        }
 
        // Apply shroud, fog and linger overlay
+               
        if(shrouded(loc)) {
                // We apply void also on off-map tiles
                // to shroud the half-hexes too
@@ -2026,6 +2034,12 @@
                        drawing_buffer_add(LAYER_FOG_SHROUD, loc, 
tblit(off_x, off_y, text));
                }
        }
+
+       if(debug_foreground) {
+               drawing_buffer_add(LAYER_UNIT_DEFAULT, loc, tblit(xpos, ypos,
+                       image::get_image("terrain/foreground.png", 
image_type)));
+       }
+
 }
 
 image::TYPE display::get_image_type(const map_location& /*loc*/) {

Modified: trunk/src/display.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.hpp?rev=44165&r1=44164&r2=44165&view=diff
==============================================================================
--- trunk/src/display.hpp (original)
+++ trunk/src/display.hpp Thu Jul 15 00:13:04 2010
@@ -334,8 +334,15 @@
         */
        static void sunset(const size_t delay = 0);
 
-       /** Toogle to continuously redraw the screen. */
+       /** Toggle to continuously redraw the screen. */
        static void toggle_benchmark();
+
+       /**
+        * Toggle to debug foreground terrain.
+        * Separate background and foreground layer
+        * to better spot any error there.
+        */
+       static void toggle_debug_foreground();
 
        void flip();
 

Modified: trunk/src/menu_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=44165&r1=44164&r2=44165&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Thu Jul 15 00:13:04 2010
@@ -2361,6 +2361,7 @@
                void do_control();
                void do_clear();
                void do_sunset();
+               void do_foreground();
                void do_fps();
                void do_benchmark();
                void do_save();
@@ -2439,6 +2440,8 @@
                                _("Clear chat history."));
                        register_command("sunset", 
&console_handler::do_sunset,
                                _("Visualize the screen refresh procedure."), 
"", "D");
+                       register_command("foreground", 
&console_handler::do_foreground,
+                               _("Debug foreground terrain."), "", "D");
                        register_command("fps", &console_handler::do_fps, 
_("Show fps."));
                        register_command("benchmark", 
&console_handler::do_benchmark);
                        register_command("save", &console_handler::do_save, 
_("Save game."));
@@ -3091,6 +3094,9 @@
        menu_handler_.gui_->sunset(delay);
        gui2::twindow::set_sunset(delay);
 }
+void console_handler::do_foreground() {
+       menu_handler_.gui_->toggle_debug_foreground();
+}
 void console_handler::do_fps() {
        preferences::set_show_fps(!preferences::show_fps());
 }




Related Messages


Powered by MHonArc, Updated Thu Jul 15 01:20:11 2010