From 8824690b4900ebfac866b90cf3e715b62a2acc89 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 08 Dec 2002 20:44:22 +0000 Subject: - merged duplicated MediaButton definition into common MediaWidget::Button structure --- (limited to 'noncore/multimedia/opieplayer2/videowidget.cpp') diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index a0aed62..7c20c6d 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp @@ -59,12 +59,7 @@ namespace const int xo = 2; // movable x offset const int yo = 0; // movable y offset - -struct MediaButton { - bool isToggle, isHeld, isDown; -}; - -MediaButton videoButtons[] = { +MediaWidget::Button videoButtons[] = { { FALSE, FALSE, FALSE }, // stop { TRUE, FALSE, FALSE }, // play { FALSE, FALSE, FALSE }, // previous @@ -78,7 +73,7 @@ const char * const skinV_mask_file_names[7] = { "stop","play","back","fwd","up","down","full" }; -const int numVButtons = (sizeof(videoButtons)/sizeof(MediaButton)); +const int numVButtons = (sizeof(videoButtons)/sizeof(MediaWidget::Button)); } -- cgit v0.9.0.2