[Oberon] RISC emulator

Paul Onyschuk blink at bojary.koba.pl
Wed Mar 26 10:33:13 CET 2014

On Tue, 25 Mar 2014 08:31:39 -0800
Jack Johnson <knapjack at gmail.com> wrote:

> ...so the window is still 1024x768, but full screen. I tried making
> the screen width and height match my native resolution but the
> resulting binary crashed, and it's not a deal breaker for me.

You could use something similar to change bellow - just use values
matching your screen resolution.  Window of this size will be created
and SDL will stretch Oberon texture to match this size.  Code of
emulator is surprisingly easy to work with. 

diff --git sdl-main.c sdl-main.c
index f637e2a..537dbe5 100644
--- sdl-main.c
+++ sdl-main.c
@@ -76,7 +76,7 @@ int main (int argc, char *argv[]) {
   SDL_Window *window = SDL_CreateWindow("Project Oberon",
                                         window_pos, window_pos,
-                                        SCREEN_WIDTH, SCREEN_HEIGHT,
+                                        800, 600,
   if (window == NULL) {
     fprintf(stderr, "Could not create window: %s\n", SDL_GetError());

Paul Onyschuk

More information about the Oberon mailing list