Fix application signature.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38558 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
91998e8078
commit
b3ac89d6a1
|
@ -2,7 +2,7 @@
|
||||||
AUTHORS: Zenja Solaja
|
AUTHORS: Zenja Solaja
|
||||||
COPYRIGHT: 2009 Haiku Inc
|
COPYRIGHT: 2009 Haiku Inc
|
||||||
DESCRIPTION: Haiku version of the famous BeInc demo 3Dmov
|
DESCRIPTION: Haiku version of the famous BeInc demo 3Dmov
|
||||||
|
|
||||||
There is an issue in Haiku when creating a 2nd BGLView which doesn't exist in Zeta
|
There is an issue in Haiku when creating a 2nd BGLView which doesn't exist in Zeta
|
||||||
(see MainWindow.cpp for details). Until that issue is resolved,
|
(see MainWindow.cpp for details). Until that issue is resolved,
|
||||||
I've allowed specifying of shape type (0-2) as a command line argument.
|
I've allowed specifying of shape type (0-2) as a command line argument.
|
||||||
|
@ -19,18 +19,18 @@ class MainApp : public BApplication
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MainApp(MainWindow::SHAPE shape);
|
MainApp(MainWindow::SHAPE shape);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MainWindow *fWindow;
|
MainWindow *fWindow;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* FUNCTION: MainApp :: MainApp
|
/* FUNCTION: MainApp :: MainApp
|
||||||
ARGS: none
|
ARGS: none
|
||||||
RETURN: n/a
|
RETURN: n/a
|
||||||
DESCRIPTION: Application constructor
|
DESCRIPTION: Application constructor
|
||||||
*/
|
*/
|
||||||
MainApp :: MainApp(MainWindow::SHAPE shape)
|
MainApp :: MainApp(MainWindow::SHAPE shape)
|
||||||
: BApplication("application/x_vnd.Haiku")
|
: BApplication("application/x-vnd.Haiku-3DMov")
|
||||||
{
|
{
|
||||||
BRect frame(50, 50, 50+400, 50+300);
|
BRect frame(50, 50, 50+400, 50+300);
|
||||||
fWindow = new MainWindow(frame, shape);
|
fWindow = new MainWindow(frame, shape);
|
||||||
|
@ -56,7 +56,7 @@ int main(int argc, char **argv)
|
||||||
if (value >= 0 && value < MainWindow::NUMBER_OF_SHAPES)
|
if (value >= 0 && value < MainWindow::NUMBER_OF_SHAPES)
|
||||||
shape = (MainWindow::SHAPE) value;
|
shape = (MainWindow::SHAPE) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
MainApp *app = new MainApp(shape);
|
MainApp *app = new MainApp(shape);
|
||||||
app->Run();
|
app->Run();
|
||||||
delete app;
|
delete app;
|
||||||
|
|
Loading…
Reference in New Issue