Skip to content

Commit

Permalink
added copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyrog committed Jun 6, 2012
1 parent 35df221 commit ae7c249
Show file tree
Hide file tree
Showing 93 changed files with 1,543 additions and 62 deletions.
16 changes: 16 additions & 0 deletions c_src/epx.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
//
// General API functions
//
Expand Down
16 changes: 16 additions & 0 deletions c_src/epx_anim.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
/*
* EPX Animation frame drawing
*
Expand Down
16 changes: 16 additions & 0 deletions c_src/epx_backend.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
//
// EPX - Backend managment
//
Expand Down
32 changes: 24 additions & 8 deletions c_src/epx_backend_cocoa.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
/*
* Mac Os X display driver
*
Expand Down Expand Up @@ -289,8 +305,8 @@ void* cocoa_event_thread(void* arg)
CocoaBackend* be = (CocoaBackend*) arg;
OSStatus err;
EventTypeSpec appEventList[] =
{ { 'EPIC', kEpicEventNew},
{ 'EPIC', kEpicEventDel},
{ { 'EEPX', kEpicEventNew},
{ 'EEPX', kEpicEventDel},
{ kEventClassCommand, kEventProcessCommand } };
// EventRef theEvent;
// EventTargetRef theTarget;
Expand Down Expand Up @@ -704,9 +720,9 @@ static int cocoa_win_attach(epx_backend_t* backend, epx_window_t* ewin)
cwin->winBounds.size.width = ewin->width;

EPX_DBGFMT("cocoa_win_attach: cwin=%p", cwin);
MacCreateEvent(nil, 'EPIC', kEpicEventNew, GetCurrentEventTime(),
MacCreateEvent(nil, 'EEPX', kEpicEventNew, GetCurrentEventTime(),
kEventAttributeNone, &newEvent);
SetEventParameter(newEvent, 'EPIC', 'CWIN', sizeof(CocoaWindow*), &cwin);
SetEventParameter(newEvent, 'EEPX', 'CWIN', sizeof(CocoaWindow*), &cwin);
PostEventToQueue(GetMainEventQueue(), newEvent, kEventPriorityHigh);
ReleaseEvent(newEvent);
EPX_DBGFMT("cocoa_win_attach: post done");
Expand All @@ -731,9 +747,9 @@ static int cocoa_win_detach(epx_backend_t* backend, epx_window_t* ewin)
ewin->opaque = NULL;
ewin->backend = NULL;

MacCreateEvent(nil, 'EPIC', kEpicEventDel, GetCurrentEventTime(),
MacCreateEvent(nil, 'EEPX', kEpicEventDel, GetCurrentEventTime(),
kEventAttributeNone, &delEvent);
SetEventParameter(delEvent, 'EPIC', 'CWIN',
SetEventParameter(delEvent, 'EEPX', 'CWIN',
sizeof(CocoaWindow*), &cwin);
PostEventToQueue(GetMainEventQueue(), delEvent, kEventPriorityHigh);
ReleaseEvent(delEvent);
Expand All @@ -756,9 +772,9 @@ static pascal OSStatus EPicAppEventHandler(

dbg_print_event("EPicAppEventHandler", inEvent);

if (eventClass == 'EPIC') {
if (eventClass == 'EEPX') {
CocoaWindow* cwin;
GetEventParameter( inEvent, 'EPIC', 'CWIN',
GetEventParameter( inEvent, 'EEPX', 'CWIN',
NULL, sizeof(CocoaWindow*), NULL, &cwin);
EPX_DBGFMT("EPicAppEventHandler:cwin = %p", cwin);
if (cwin == NULL)
Expand Down
16 changes: 16 additions & 0 deletions c_src/epx_backend_fb.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
/*
* Framebuffer display driver
*/
Expand Down
16 changes: 16 additions & 0 deletions c_src/epx_backend_macos.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
/*
* Mac Os X display driver
*
Expand Down
16 changes: 16 additions & 0 deletions c_src/epx_backend_none.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
//
// Template display driver
//
Expand Down
16 changes: 16 additions & 0 deletions c_src/epx_backend_x11.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
/*
* X display driver
*/
Expand Down
34 changes: 25 additions & 9 deletions c_src/epx_bitmap.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
/*
* EPIC Bitmap functions
* EPX Bitmap functions
*
*/
#include <math.h>
#include "epic.h"
#include "epix.h"

#define BYTE_OFFSET(ofs) ((unsigned) (ofs) >> 3)
#define BIT_OFFSET(ofs) ((ofs) & 7)
Expand Down Expand Up @@ -667,10 +683,10 @@ int ebitmap_draw_rectangle(EBitmap* bmp,
int x1 = x0+width-1;
int y1 = y0+height-1;

ebitmap_draw_line(bmp,x0,y0,x1,y0,EPIC_LINE_STYLE_NFIRST,bit);
ebitmap_draw_line(bmp,x1,y0,x1,y1,EPIC_LINE_STYLE_NFIRST,bit);
ebitmap_draw_line(bmp,x1,y1,x0,y1,EPIC_LINE_STYLE_NFIRST,bit);
ebitmap_draw_line(bmp,x0,y1,x0,y0,EPIC_LINE_STYLE_NFIRST,bit);
ebitmap_draw_line(bmp,x0,y0,x1,y0,EPX_LINE_STYLE_NFIRST,bit);
ebitmap_draw_line(bmp,x1,y0,x1,y1,EPX_LINE_STYLE_NFIRST,bit);
ebitmap_draw_line(bmp,x1,y1,x0,y1,EPX_LINE_STYLE_NFIRST,bit);
ebitmap_draw_line(bmp,x0,y1,x0,y0,EPX_LINE_STYLE_NFIRST,bit);
return 0;
}

Expand Down Expand Up @@ -1021,10 +1037,10 @@ static int ellipse(EBitmap* bmp, int x0, int y0,
EBitmapPutBit(bmp,x0,y0-y,bit);
}
else if (y == 0)
ebitmap_draw_line(bmp,x0-x,y0,x0+x,y0,EPIC_LINE_STYLE_NFIRST,bit);
ebitmap_draw_line(bmp,x0-x,y0,x0+x,y0,EPX_LINE_STYLE_NFIRST,bit);
else {
ebitmap_draw_line(bmp,x0-x,y0+y,x0+x,y0+y,EPIC_LINE_STYLE_NFIRST,bit);
ebitmap_draw_line(bmp,x0-x,y0-y,x0+x,y0-y,EPIC_LINE_STYLE_NFIRST,bit);
ebitmap_draw_line(bmp,x0-x,y0+y,x0+x,y0+y,EPX_LINE_STYLE_NFIRST,bit);
ebitmap_draw_line(bmp,x0-x,y0-y,x0+x,y0-y,EPX_LINE_STYLE_NFIRST,bit);
}
}
else {
Expand Down
16 changes: 16 additions & 0 deletions c_src/epx_cpuid.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
//
// CPUID x86
//
Expand Down
16 changes: 16 additions & 0 deletions c_src/epx_debug.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
//
// debug logging support
//
Expand Down
18 changes: 17 additions & 1 deletion c_src/epx_dict.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
/*
* EPIC Dictionary
* EPX Dictionary
*
* Used to store key value pairs:
*
Expand Down
16 changes: 16 additions & 0 deletions c_src/epx_draw.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
//
// Shape drawing api
//
Expand Down
16 changes: 16 additions & 0 deletions c_src/epx_ellipse.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
/*
* Ellipse drawing algorithms
*
Expand Down
18 changes: 17 additions & 1 deletion c_src/epx_font.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
/***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http://www.rogvall.se/docs/copyright.txt.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYRIGHT file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
/*
* EPIC Font functions
* EPX Font functions
*/
#include <sys/mman.h>
#include <sys/types.h>
Expand Down
Loading

0 comments on commit ae7c249

Please sign in to comment.