mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
BeSol: use safe source. Still doesn't compile
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
SUMMARY="Easily create and play games of solitaire"
|
||||
DESCRIPTION="Solitaire program that loads, saves, edits, and of course runs \
|
||||
solitaire games."
|
||||
HOMEPAGE="http://github.com/HaikuArchives/BeSol"
|
||||
HOMEPAGE="https://github.com/HaikuArchives/BeSol/"
|
||||
COPYRIGHT="1999 Jason Wrinkle"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="git://github.com/HaikuArchives/BeSol"
|
||||
SOURCE_DIR="BeSol-master"
|
||||
PATCHES="BeSol.patch"
|
||||
REVISION="4"
|
||||
COMMIT="2ac61dc65cb66ae9274d22f08c108ef845f9d76c"
|
||||
SOURCE_URI="https://github.com/HaikuArchives/BeSol/archive/$COMMIT.zip"
|
||||
CHECKSUM_SHA256="245c6c685e48a553401a5461bd3809819c5745d0a2fd86e5833ffccab5ae313b"
|
||||
SOURCE_DIR="BeSol-$COMMIT"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
diff --git a/Source/BesolWindow.h b/Source/BesolWindow.h
|
||||
index d703c1c..ad648f8 100644
|
||||
--- a/Source/BesolWindow.h
|
||||
+++ b/Source/BesolWindow.h
|
||||
@@ -27,6 +27,8 @@
|
||||
#include <View.h>
|
||||
#include <Beep.h>
|
||||
#include <SupportKit.h>
|
||||
+#include <File.h>
|
||||
+#include <Roster.h>
|
||||
|
||||
#ifndef IEWINDOW
|
||||
#define IEWINDOW
|
||||
diff --git a/Source/PILE.c++ b/Source/PILE.c++
|
||||
index e826b76..3c0f259 100644
|
||||
--- a/Source/PILE.c++
|
||||
+++ b/Source/PILE.c++
|
||||
@@ -238,7 +238,7 @@ void PILE::construction_helper(pile_props* props)
|
||||
PILE::~PILE()
|
||||
{
|
||||
BMenuItem* item = popmenu->FindItem(POP_EDIT);
|
||||
- if ( item->IsMarked() ) peditor->Remove_Target(cast_as(this, BView));
|
||||
+ if ( item->IsMarked() ) peditor->Remove_Target((BView*)this);
|
||||
|
||||
list< list<TRANSRULES*> >::iterator itert = allrules->begin();
|
||||
list<TRANSRULES*>::iterator iterf;
|
||||
@@ -685,7 +685,7 @@ void PILE::MessageReceived(BMessage* message)
|
||||
{
|
||||
BMenuItem* item = popmenu->FindItem(POP_EDIT);
|
||||
item->SetMarked( !(item->IsMarked()) );
|
||||
- BView* temp = cast_as (this, BView);
|
||||
+ BView* temp = (BView*)this;
|
||||
isbeingedited = !isbeingedited;
|
||||
Invalidate(Bounds());
|
||||
|
||||
Reference in New Issue
Block a user